-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
bug(select, autocomplete): strong focus indicator not present for selected option #26801
Closed
1 task
Labels
Accessibility
This issue is related to accessibility (a11y)
area: material/autocomplete
area: material/core
area: material/select
P2
The issue is important to a large percentage of users, with a workaround
Comments
zarend
added
P2
The issue is important to a large percentage of users, with a workaround
Accessibility
This issue is related to accessibility (a11y)
area: material/autocomplete
area: material/core
area: material/select
labels
Mar 16, 2023
zarend
added a commit
to zarend/components
that referenced
this issue
Mar 16, 2023
Apply strong focus styles to the selected option. Do this by applying `border` and `border-radius` styles with increases specificity. Fix issue where the List styles from MDC override the strong focus style, which causes the strong focus indicator to not be present on selected option (angular#26801). Fix angular#26801
zarend
added a commit
to zarend/components
that referenced
this issue
Mar 16, 2023
Apply strong focus styles to the selected option. Do this by applying `border` and `border-radius` styles with increases specificity. Fix issue where the List styles from MDC override the strong focus style, which causes the strong focus indicator to not be present on selected option (angular#26801). Fix angular#26801
zarend
added a commit
to zarend/components
that referenced
this issue
Mar 20, 2023
Apply strong focus styles to the selected option. Do this by putting the `.mat-mdc-focus-indicator` class on the ripple element. Fix issue where the List styles from MDC override the strong focus style, which causes the strong focus indicator to not be present on selected option (angular#26801). Align maat-option with list-item's implementation by putting the focus indicator on a child element of the component root, rather than directly on the component root. Does not add aditional DOM nodes.
zarend
added a commit
to zarend/components
that referenced
this issue
Mar 20, 2023
Apply strong focus styles to the selected option. Do this by putting the `.mat-mdc-focus-indicator` class on the ripple element. Fix issue where the List styles from MDC override the strong focus style, which causes the strong focus indicator to not be present on selected option (angular#26801). Align maat-option with list-item's implementation by putting the focus indicator on a child element of the component root, rather than directly on the component root. Does not add aditional DOM nodes.
angular-robot bot
pushed a commit
that referenced
this issue
Mar 22, 2023
) Apply strong focus styles to the selected option. Do this by putting the `.mat-mdc-focus-indicator` class on the ripple element. Fix issue where the List styles from MDC override the strong focus style, which causes the strong focus indicator to not be present on selected option (#26801). Align maat-option with list-item's implementation by putting the focus indicator on a child element of the component root, rather than directly on the component root. Does not add aditional DOM nodes.
angular-robot bot
pushed a commit
that referenced
this issue
Mar 22, 2023
) Apply strong focus styles to the selected option. Do this by putting the `.mat-mdc-focus-indicator` class on the ripple element. Fix issue where the List styles from MDC override the strong focus style, which causes the strong focus indicator to not be present on selected option (#26801). Align maat-option with list-item's implementation by putting the focus indicator on a child element of the component root, rather than directly on the component root. Does not add aditional DOM nodes. (cherry picked from commit 96aadaa)
It looks like this was fixed in #26801. Closing. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Accessibility
This issue is related to accessibility (a11y)
area: material/autocomplete
area: material/core
area: material/select
P2
The issue is important to a large percentage of users, with a workaround
Is this a regression?
The previous version in which this bug was not present was
No response
Description
For options in a select or autocomplete, strong focus only appears on items that are not selected. Indicator does not appear on the selected item.
Reproduction
Steps to reproduce:
Expected Behavior
Coke has check icon to indicate selection, gray background and blue focus ring
Actual Behavior
"Coke" has check icon gray background, but no focus ring.
Pressing up/down to focus other options shows a blue focus ring, but not on "Coke"
Environment
The text was updated successfully, but these errors were encountered: