Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Raised button on dark theme uses primary-on-dark text even though the background is primary, not dark #819

Closed
@unascribed

Description

@unascribed

What MDC-Web Version are you using?

0.13.0

What browser(s) is this bug affecting?

Chromium 58.0.3029.81

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36

Firefox Developer Edition 54.0b12

Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

What OS are you using?

Arch Linux x86_64 (last updated May 3rd)

What are the steps to reproduce the bug?

  1. Create a raised button
  2. Add mdc-theme--dark to a parent element
  3. Set the primary color to something bright, like Yellow 500
  4. Observe the fact the button is completely illegible

https://codepen.io/anon/pen/EXyBGe

What is the expected behavior?

The button text color should change to black, as if it was using --mdc-theme-text-primary-on-primary

What is the actual behavior?

The button text color stays white, as it's using --mdc-theme-text-primary-on-dark

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions