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

[Topic RL] All components - display focus outline via keyboard only #5752

Closed
1 of 4 tasks
ilhan007 opened this issue Aug 30, 2022 · 2 comments
Closed
1 of 4 tasks

[Topic RL] All components - display focus outline via keyboard only #5752

ilhan007 opened this issue Aug 30, 2022 · 2 comments

Comments

@ilhan007
Copy link
Member

Feature Request Description

As part of the Fiori Next initiative, along with the Horizon theme family, we would like to change the focus outline behaviour as follows: focus should be present only on pressing keyboard keys. Currently we apply focus upon mouse interaction (click) as well. So, we would have to distinguish between these two cases and apply focus outline only in the first case.

Origin issue: #3986

Proposed Solution

There is a native solution, you can make use of :focus-visible pseudo class to set the focus only via keyboard navigation.

When switching to the CSS solution, the focused state and the event handlers that update it should be removed.

Additional Context

For use-cases when the focus outline should be displayed on another HTML element other than the focused one, the ":focus-visible" won't work as it matches the actual focused element.

Example

:host([focused]) .ui5-button-root:after {

}
will become
.ui5-button-root:focus-visible.ui5-button-root:after {

}

Support

Contact UI5 Web Components Core team for all cases that the CSS solution won't work to discuss how to
handle them.

Priority

  • Low
  • Medium
  • High
  • Very High

A clear and concise description of the impact/urgency of the required feature.

Stakeholder Info (if applicable)

  • Organization: SAP UX
@ilhan007
Copy link
Member Author

Hello @SAP/ui5-webcomponents-topic-rl this is a new Feature Request that needs to be evaluated, and eventually planned.

Thanks,
ilhan

@ilhan007
Copy link
Member Author

ilhan007 commented Feb 21, 2024

Closed in favor of: #8250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Completed
Development

No branches or pull requests

2 participants