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(@clayui/css): Adds :focus-visible support #5635

Merged
merged 5 commits into from
Jul 25, 2023

Conversation

pat270
Copy link
Member

@pat270 pat270 commented Jul 13, 2023

This adds :focus-visible support by default. All the browsers that we support have this feature, we can disable it by setting $enable-focus-visible: false. Most items should be covered except form input and select, these always show the focus outline.

This also adds the class c-prefers-focus to force focus on click via the accessibility menu. I wanted to include docs today, but couldn't get to it today.

Lastly, I didn't cover the style issues in #5624. I feel like it's too much change for this PR.

#3342 #4972 #5006

@ethib137 @matuzalemsteles @marcoscv-work @veroglez

Copy link
Member

@matuzalemsteles matuzalemsteles left a comment

Choose a reason for hiding this comment

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

LGTM! @pat270 how is the use case when we have the focus visible together with the c-inner, does it cause any problems? It would be possible for example to have a toggle, for example if the enable-focus-visible property is enabled the enable-c-inner property is disabled.

@matuzalemsteles
Copy link
Member

@pat270 I sent a small fix on the breadcrumb that we were using the c-focus-inset on the button.

I noticed that some use cases still have the ring perhaps this is expected for the Picker button, right?. I also noticed that we still have the ring in MultiStep.

@pat270
Copy link
Member Author

pat270 commented Jul 14, 2023

Thanks @matuzalemsteles ! I probably missed several places. I only updated the mixins. I should check the components as well.

Copy link
Member

@matuzalemsteles matuzalemsteles left a comment

Choose a reason for hiding this comment

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

LGTM!

@matuzalemsteles matuzalemsteles merged commit 22c308b into liferay:master Jul 25, 2023
4 checks passed
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.

None yet

2 participants