Skip to content

fix(material/menu): submenu icon not working in high contrast mode - #23012

Merged
mmalerba merged 1 commit into
angular:masterfrom
crisbeto:22944/menu-submenu-icon-a11y
Jun 22, 2021
Merged

fix(material/menu): submenu icon not working in high contrast mode#23012
mmalerba merged 1 commit into
angular:masterfrom
crisbeto:22944/menu-submenu-icon-a11y

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Currently the submenu icon is rendered as a CSS triangle which turns into a rectangle in high contrast mode. These changes resolve the issue by using SVG for the icon instead.

Fixes #22944.

@crisbeto crisbeto added P2 The issue is important to a large percentage of users, with a workaround Accessibility This issue is related to accessibility (a11y) target: patch This PR is targeted for the next patch release labels Jun 18, 2021
@crisbeto
crisbeto requested a review from jelbourn June 18, 2021 14:54
@google-cla google-cla Bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 18, 2021
Currently the submenu icon is rendered as a CSS triangle which turns into a rectangle in high contrast mode. These changes resolve the issue by using SVG for the icon instead.

Fixes angular#22944.
@crisbeto
crisbeto force-pushed the 22944/menu-submenu-icon-a11y branch from ab2f67a to 8f185b1 Compare June 18, 2021 15:07

@jelbourn jelbourn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Jun 18, 2021
@jelbourn

Copy link
Copy Markdown
Contributor

Caretaker note: this is going to be screenshot city

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jun 18, 2021
@crisbeto

Copy link
Copy Markdown
Member Author

For what it's worth, I was verifying that the new icon size and position was the same as the old one by laying one on top of the other.

@mmalerba mmalerba added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Jun 22, 2021
@mmalerba
mmalerba merged commit ad2baa6 into angular:master Jun 22, 2021
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jul 23, 2021
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) action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note P2 The issue is important to a large percentage of users, with a workaround target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(menu): nested menu indicator renders weird in high contrast mode

3 participants