question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Carbon X] DatePicker color tokens applied with g90 and g100 themes have inaccessible color contrast

See original GitHub issue

Detailed description

A number of colors/tokens being applied to the DatePicker are not accessible when the g100 or g90 themes from @carbon/themes are used.

Here are some example screenshots…

g100 theme

Simple date picker

screen shot 2019-01-29 at 4 40 08 pm

Range with min and max

screen shot 2019-01-30 at 10 06 47 am

g90 theme

Range

screen shot 2019-01-30 at 10 01 51 am

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
aagonzalescommented, Feb 1, 2019

What the Duo file says the dark date picker should look like (ignore their field styles):

  • highlight is Blue 90 #021677 image
1reaction
aagonzalescommented, Feb 1, 2019
  • The underline for the fields should be $ui-04 which is Gray 60 #6F6F6F in the Gray 100 theme
  • All the icons should be using the token $icon-01
  • The day ranges are just hard coded and will have to be over ridden. It seems excessive to make a token just for that. Could be convinced otherwise though. Could maybe be like a $highlight token or something, could maybe be used elsewhere
  • The placeholder text in the fields should be using $text-03 which should be Gray 60 #6F6F6F in the G100 Theme
Read more comments on GitHub >

github_iconTop Results From Across the Web

Color - Carbon Design System
Implementing color​​ Carbon uses tokens and themes to manage color. Tokens are role-based, and themes specify the color values that serve those ...
Read more >
Color - Carbon Design System
Token Role Value $ui‑background Default page background White; —; #ffffff $interactive‑01 Primary interactive color;; Primary buttons Blue 60; —; #0f62fe $interactive‑02 Secondary interactive color;; Secondary button...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found