Skip to content

[Task]: Remove focus-visible polyfill from addons-frontend #16276

@diox

Description

@diox

Description

addons-frontend still uses https://www.npmjs.com/package/focus-visible polyfill, but :focus-visible has been supported by every major browser for a while, so it shouldn't be necessary any more.

The polyfill sets a .focus-visible class so a few of our CSS should be adjusted accordingly.

To ensure that nothing broke, verify that clicking the following buttons with a mouse does not result in an outline on the button, while using keyboard tab key to find the button and then Enter key to select it still does show an outline when the button has focus:

  • Choose Photo on user profile edit page
  • Rating star on add-on detail page
  • Top right dropdown menu
  • Buttons in general

Acceptance Criteria

  • focus-visible polyfill is removed and the CSS that use that still work

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions