You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
menu: assigning a color to backgroundPalette renders menu unreadable #9100
Details: I used the same colors used to define the blue palette and assigned it to customeBlue. I am assigning this pallet to the backgroundPalette property. Since contrastDefaultColor is "light"i would expect the md-menu text to be white. But that's not the case.
I'll investigate more, but it seems like it's not using a contrast color but a hue from the actual background color. I believe, at a glance, I could change that to be {{background-A100-contrast}}
I might actual shelve this until #8872, so I can apply a opacity for the icon automatically as well.
changed the title [-]Assigning a color to backgroundPalette renders md-menu unreadable[/-][+]menu: assigning a color to backgroundPalette renders menu unreadable[/+]on Aug 26, 2019
Activity
clshortfuse commentedon Jul 22, 2016
Seems like the issue is related to https://github.com/angular/material/blob/master/src/components/menu/menu-theme.scss#L5
I'll investigate more, but it seems like it's not using a contrast color but a hue from the actual background color. I believe, at a glance, I could change that to be
{{background-A100-contrast}}I might actual shelve this until #8872, so I can apply a opacity for the icon automatically as well.
fix(menu): support dark themes
fix(menu): support dark themes and non-grey backgrounds
fix(menu): support dark themes and non-grey backgrounds
fix(menu): support dark themes and non-grey backgrounds
14 remaining items
[-]Assigning a color to backgroundPalette renders md-menu unreadable[/-][+]menu: assigning a color to backgroundPalette renders menu unreadable[/+]fix(menu): support dark themes and non-grey backgrounds
Splaktar commentedon Aug 26, 2019
Unfortunately, this CodePen demo is a 404 now. So I can't verify this directly, but I believe this to be fixed in recent releases, including
1.1.20.Here are some examples:



The issue with the toolbar text being white on yellow in the last screenshot should be fixed by PR #11376 (or possibly by follow on PR #11378).