Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
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

Closed
@VRathore42

Description

@VRathore42

Actual Behavior:

  • What is the issue? * When we assign a color (say blue) to backgroundPalette, the text on md-menu is not barely readable.
  • What is the expected behavior?The color should either be white or black based on the contrastDefaultColor property.

CodePen (or steps to reproduce the issue): *

  • CodePen Demo which shows your issue:http://codepen.io/vrathore42/pen/oLqdxp
  • 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.

Angular Versions: *

  • Angular Version:
  • Angular Material Version:1.1.0-rc.5

Additional Information:

  • Browser Type: * chrome
  • Browser Version: * 51.0.2704.103 (64-bit)
  • OS: * OS X 10.11.6 (El Capitan)
  • Stack Traces: na

Metadata

Metadata

Assignees

Labels

P2: requiredIssues that must be fixed.a11yThis issue is related to accessibilityneeds: demoA CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issueresolution: fixedui: theme

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions