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

[core] feat(FocusStyleManager): add escape hatch #5235

Merged
merged 2 commits into from
Apr 15, 2022

Conversation

dlech
Copy link
Contributor

@dlech dlech commented Apr 5, 2022

Fixes #5229

Checklist

  • Includes tests
  • Update documentation

Not sure how to do tests for css.

Changes proposed in this pull request:

This adds a new Classes.FOCUS_MANAGER_IGNORE for allowing individual components to chose to ignore the focus manager and always show the focus outline, even when clicked.

Reviewers should focus on:

Screenshot

This adds a new `Classes.FOCUS_MANAGER_IGNORE` for allowing individual
components to chose to ignore the focus manager and always show the
focus outline, even when clicked.

Fixes: palantir#5229
Copy link
Contributor

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

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

looks good, let's just make the naming a little more explicit so that it's clear this corresponds to FocusStyleManager

packages/core/src/accessibility/_focus-states.scss Outdated Show resolved Hide resolved
packages/core/src/common/classes.ts Outdated Show resolved Hide resolved
packages/core/src/docs/accessibility.md Outdated Show resolved Hide resolved
packages/core/src/docs/accessibility.md Outdated Show resolved Hide resolved
@adidahiya
Copy link
Contributor

In fact I would go one step further and rename the docs section from "Focus management" to "Focus style management". but I can do that in a separate PR.

@adidahiya adidahiya changed the title [core]: add Classes.FOCUS_MANAGER_IGNORE [core] feat(FocusStyleManager): add escape hatch Apr 15, 2022
@adidahiya adidahiya merged commit cd37cfd into palantir:develop Apr 15, 2022
@dlech dlech deleted the focus-manager-ignore branch April 15, 2022 16:17
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.

Disabling focus manager takes two clicks
2 participants