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

Button Example Page: Fix CSS that caused focus indicator to disappear #2673

Merged
merged 2 commits into from
Apr 13, 2023

Conversation

alflennik
Copy link
Contributor

@alflennik alflennik commented Apr 12, 2023

For more information see #2650.

On the button example there was an interaction between the website template's focus indication implementation and the example's focus indication that resulted in no indicator showing. There was some rightful concern from Howard that naively removing z-index of -1 might result in a regression that the original author had intended to fix, so I tested the button as thoroughly as I can to cover our bases:

Following the change I tested both the final version as it appears on the website as well as the raw HTML version as it appears in the APG source code, on Mac with Chrome, Firefox and Safari, including with VoiceOver, and on Windows with Chrome, Firefox and Edge, including with NVDA. In all cases the buttons were focusable and interactable with visible focus indication.

cc @mcking65


WAI Preview Link (Last built on Wed, 12 Apr 2023 18:18:56 GMT).

@mcking65
Copy link
Contributor

@alflennik

It is also very important to ensure that high contrast mode is not negatively impacted. I'm guessing that it would not based on the nature of these changes, but it needs to be tested.

@a11ydoer are you available to review this??

Copy link
Contributor

@charmarkk charmarkk left a comment

Choose a reason for hiding this comment

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

@alflennik I'm seeing visual focus indication now with Firefox and Chrome latest on Windows!

@mcking65 I'm also seeing that HCM is working well on Windows. Both Firefox and Chrome give a thick white outline (thicker than the focus indication that was already there, actually) in HCM Black; HCM White has a thick black outline on both. In Chrome and HCM Black, there is a slight cyan outline underneath/inside the white outline, too.

@mcking65
Copy link
Contributor

@charmarkk

Thank you, thank you for the speedy review!!

@mcking65 mcking65 changed the title Fix button focus indicator - issue 2650 Button Example Page: Fix CSS that caused focus indicator to disappear Apr 13, 2023
@mcking65 mcking65 linked an issue Apr 13, 2023 that may be closed by this pull request
@mcking65 mcking65 merged commit 34b73c1 into main Apr 13, 2023
@mcking65 mcking65 deleted the issue-2650 branch April 13, 2023 00:27
@mcking65 mcking65 added bug Code defects; not for inaccurate prose Example Page Related to a page containing an example implementation of a pattern labels Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Code defects; not for inaccurate prose Example Page Related to a page containing an example implementation of a pattern
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Button example's sample buttons lack visual focus indication
4 participants