Skip to content
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: add focus styles #344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ElizabethT7
Copy link
Contributor

No description provided.

@ElizabethT7 ElizabethT7 requested a review from feerzlay August 22, 2024 06:04
@feerzlay feerzlay force-pushed the feature/switch-base-focus branch 2 times, most recently from 866583f to 9d7919a Compare October 16, 2024 07:32
@@ -114,6 +115,10 @@ const CheckboxRoot = styled(SwitchBase, {
height: '24px !important',
width: '24px !important',
},

[`&:not(.${buttonBaseClasses.disabled}):focus-visible`]: {
outlineOffset: '-4px',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Похоже эти стили не применяются, потому что фокусируется не сама кнопка, а инпут внутри нее. В SwitchBase это идет как &:not(:disabled):has(:focus-visible).

@ElizabethT7 ElizabethT7 force-pushed the feature/switch-base-focus branch from 9d7919a to 928c84f Compare October 17, 2024 13:51
@feerzlay feerzlay force-pushed the master branch 2 times, most recently from 8fb8e68 to f12d8ab Compare March 13, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants