From a90f6d3936dd81ee9ae5673d38d0ea5f8007a848 Mon Sep 17 00:00:00 2001 From: Brad Traversy Date: Wed, 29 Jan 2025 10:38:44 -0500 Subject: [PATCH] Fixed CSS selector issue --- form-input-wave/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/form-input-wave/style.css b/form-input-wave/style.css index d1642b8..f5548ce 100644 --- a/form-input-wave/style.css +++ b/form-input-wave/style.css @@ -96,8 +96,8 @@ body { transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); } -.form-control input:focus + label span, -.form-control input:valid + label span { +.form-control input:focus ~ label span, +.form-control input:valid ~ label span { color: lightblue; transform: translateY(-30px); }