Topic: A tenant color makes the primary button label hard to read

Eva Quinn free asked 6 days ago


Our application lets each workspace choose a primary color. We apply it to the Save button's background, but the label remains white. Workspaces that pick a pale yellow or light gray now have a label that is difficult to read.

The color is applied at runtime and cannot be compiled into a separate theme for each workspace. Should we select a foreground color separately, or restrict the allowed background colors? We also need hover and focus states to remain clear.



Choose and validate the foreground color together with the workspace background. A fixed white label will not remain legible on every selectable color. Either offer a reviewed palette of color pairs or validate each custom pair against the contrast requirements you target.

Apply the pair consistently to the normal and interactive states rather than changing only background-color. Keep an independently visible focus indicator and communicate disabled state with more than color. Please share the runtime styling rules and the complete button states if a valid pair is still being overridden.

https://mdbootstrap.com/docs/angular/components/buttons/



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: MDB5 9.1.0
  • Device: Laptop
  • Browser: Chrome
  • OS: macOS
  • Provided sample code: No
  • Provided link: No