use focus-within

elevaunt 0 16 0
Open on CodePen More by elevaunt