Can't get Pseudo-Class Variants 'group-hover' or 'group-focus' working #2109
-
Hey there, Am I missing something? Currently, my // tailwind.config.js
module.exports = {
variants: {
textColor: ['responsive', 'hover', 'group-hover', 'focus'],
},
} In the example below I am trying to add group-hover to an input to change the textColor: <input
className='px-4 py-2 w-full border border-gray-200 rounded group-hover:text-red-500'
placeholder='Search...'
autoComplete='none' /> Thanks in advance for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Did you add https://tailwindcss.com/docs/pseudo-class-variants/#group-hover |
Beta Was this translation helpful? Give feedback.
Did you add
group
to the parent element?https://tailwindcss.com/docs/pseudo-class-variants/#group-hover