Complete the code to apply a blue border when the container or its child is focused using Tailwind's focus-within variant.
<div class="border [1]:border-blue-500 p-4"> <input type="text" placeholder="Type here" /> </div>
The focus-within variant applies styles when the container or any of its children have focus.
Complete the code to change the background color of a form group when any input inside it is focused using Tailwind's focus-within variant.
<form class="p-6 rounded [1]:bg-gray-100"> <label> Name: <input type="text" class="border p-2" /> </label> </form>
The focus-within variant changes the background when any child input inside the form is focused.
Fix the error in the code to correctly apply a red outline to the container when any child input is focused using Tailwind's focus-within variant.
<section class="p-5 border [1]:outline-red-500"> <input type="text" placeholder="Email" /> </section>
The focus-within variant applies styles when any child element inside the container is focused, which is needed here.
Fill both blanks to apply a green border and change text color to green when any child input inside the div is focused using Tailwind's focus-within variant.
<div class="border p-3 [1]:border-green-500 [2]:text-green-600"> <input type="text" placeholder="Username" /> </div>
Both blanks use focus-within to style the border and text color when any child input is focused.
Fill all three blanks to create a card that changes border color, background color, and shadow when any child input is focused using Tailwind's focus-within variant.
<article class="border p-6 rounded [1]:border-purple-600 [2]:bg-purple-50 [3]:shadow-lg"> <label> Email: <input type="email" class="p-2 border rounded" /> </label> </article>
All three blanks use focus-within to style the card when any child input is focused.