Skip to content

fix(ui5-select): remove focus outline from input when dropdown is opened#13643

Open
plamenivanov91 wants to merge 1 commit into
mainfrom
select-double-focus-fix
Open

fix(ui5-select): remove focus outline from input when dropdown is opened#13643
plamenivanov91 wants to merge 1 commit into
mainfrom
select-double-focus-fix

Conversation

@plamenivanov91
Copy link
Copy Markdown
Contributor

When the Select dropdown is activated, the focus should only be on the selected list item, not on the input element. Previously, both the input and the selected item showed focus indicators, violating accessibility standards for single focus.

Hide the focus pseudo-element on the input when the popover is opened, ensuring only the selected item in the dropdown shows a focus indicator.

  • Modified Select.css to remove focus outline when [opened] attribute is set
  • Added accessibility test to verify focus behavior
  • All 68 Select tests pass

Fixes: #13616

When the Select dropdown is activated, the focus should only be on the
selected list item, not on the input element. Previously, both the input
and the selected item showed focus indicators, violating accessibility
standards for single focus.

Hide the focus pseudo-element on the input when the popover is opened,
ensuring only the selected item in the dropdown shows a focus indicator.

- Modified Select.css to remove focus outline when [opened] attribute is set
- Added accessibility test to verify focus behavior
- All 68 Select tests pass

Fixes: #13616
@sap-ui5-webcomponents-release
Copy link
Copy Markdown

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.

[Select][Web Components][2.22.0] Double Focus

1 participant