Skip to content

use :focus-visible pseudoclass instead of focus-visible polyfill - #15074

Merged
gtritchie merged 11 commits into
mainfrom
remove-focus-visible-polyfill
Sep 10, 2024
Merged

gtritchie merged 11 commits into
mainfrom
remove-focus-visible-polyfill

Conversation

@gtritchie

@gtritchie gtritchie commented Aug 22, 2024 •

Copy link
Copy Markdown
Member

Intent

Addresses:

Approach

Use standard :focus-visible pseudoclass instead of the focus-visible polyfill (all browsers now support the pseudoclass and the polyfill was causing issues with the Visual Editor in recent Chrome releases).

Eliminated the "Always show focus outlines" accessibility option. These are now always on. If we decide we still want this option it could be done via some additional css work and applying a class to the page body based on the preference.

Automated Tests

None

QA Notes

Test that tabbing between controls with the keyboard shows focus rectangles, but clicking on controls does not. This is all controlled by the browser. The focus rectangle styles should be the same as before (for better or worse), so you could compare against an earlier build to see if it's consistent.

Documentation

None

Checklist

  • If this PR adds a new feature, or fixes a bug in a previously released version, it includes an entry in NEWS.md
  • If this PR adds or changes UI, the updated UI meets accessibility standards
  • A reviewer is assigned to this PR (if unsure who to assign, check Area Owners list)
  • This PR passes all local unit tests

@gtritchie
gtritchie requested a review from kevinushey August 22, 2024 22:40
@gtritchie
gtritchie marked this pull request as ready for review August 23, 2024 15:40
@gtritchie

gtritchie commented Aug 26, 2024 •

Copy link
Copy Markdown
Member Author

The issue that motivated working on this has been resolved by Chrome itself, so we're not taking this. No known user benefit.

Still getting some reports of this, and though we suspect it's due to running older Chrome versions (i.e. not letting Chrome update itself), want to get this into the Kousa-Dogwood RStudio release so it gets some testing in case we end up needing to backport.

@gtritchie gtritchie closed this Aug 26, 2024
@gtritchie gtritchie reopened this Sep 9, 2024
@gtritchie
gtritchie merged commit 42f5ff1 into main Sep 10, 2024
@gtritchie
gtritchie deleted the remove-focus-visible-polyfill branch September 10, 2024 02:03
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.

1 participant