Add ui-group-focus-visible utility to Tailwind Plugin #2499
agusterodin
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
You can also add the variant yourself as a plugin: // extends the "@headlessui/tailwindcss" plugin so that it is possible to use group-ui-focus-visible: and peer-ui-focus-visible:
const addMissingGroupUiFocusVisiblePlugin = plugin(
({ addVariant }) => {
addVariant("group-ui-focus-visible", ":where([data-headlessui-focus-visible]) :merge(.group) &");
addVariant("peer-ui-focus-visible", ":where([data-headlessui-focus-visible]) :merge(.peer) ~ &");
}
) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am a huge fan of the focus visible variants added in #2347 that prevents focus styles from showing when using mouse.
Unfortunately there is no group-focus-visible utility. Would love to see this feature in future.
Beta Was this translation helpful? Give feedback.
All reactions