-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: IsFocusWithin
#103
feat: IsFocusWithin
#103
Conversation
🦋 Changeset detectedLatest commit: 5b6b2bb The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
I feel like this might encourage relying on JS for styling instead of just the |
The same could be said for the If someone really wants to instantiate a class, bind to the reference of an element, and conditionally style something vs using the CSS selector then they have problems we're incapable of solving. |
Also, there is a use case for styling where you want to style something that isn't the form element differently when the form element has focus within. |
You can still use CSS for that. Style a child Style a sibling Style a parent But yeah I get the other use case. |
Tracks whether focus is within a given target element.
I also added testing library so we can test components.