Skip to content

fix(material/paginator): button icons blending in with background in high contrast mode on Chromium browsers #22385

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

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Apr 1, 2021

Setting fill: currentColor on an SVG element causes it to blend in with the background on Chromium-based browsers. These changes add a fallback color.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent Accessibility This issue is related to accessibility (a11y) target: patch This PR is targeted for the next patch release labels Apr 1, 2021
@crisbeto crisbeto requested a review from andrewseguin April 1, 2021 14:25
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 1, 2021
@crisbeto crisbeto force-pushed the paginator-high-contrast branch 2 times, most recently from 023bb58 to caefaa6 Compare April 1, 2021 15:25
…high contrast mode on Chromium browsers

Setting `fill: currentColor` on an SVG element causes it to blend in with the background on Chromium-based browsers. These changes add a fallback color.
@crisbeto crisbeto force-pushed the paginator-high-contrast branch from caefaa6 to b583328 Compare April 1, 2021 16:20

// On Chromium browsers the `currentColor` blends in with the
// background for SVGs so we have to fall back to `CanvasText`.
fill: CanvasText;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be a conditional here?

Copy link
Member Author

Choose a reason for hiding this comment

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

There shouldn't, because some browsers don't support CanvasText.

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Apr 9, 2021
@wagnermaciel wagnermaciel 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 Apr 19, 2021
@wagnermaciel wagnermaciel merged commit d056f98 into angular:master Apr 19, 2021
@angular-automatic-lock-bot
Copy link

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 May 20, 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 P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants