Enterprise: Colors: Color Pallete Page Doesn't Change By Theme

Created on 6 Feb 2020  路  8Comments  路  Source: infor-design/enterprise

Describe the bug
On the colors demo app page we made changes so it does not change when changing theme. This is because the colors are used across ALL themes, so at least one color will get hidden if we change the background color to something other than white.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://design.infor.com/code/ids-enterprise/4.25.0/colors
  2. Click on the buttons to change theme to dark
  3. Notice a small strip of dark
  4. Also the Ruby 06 should be #DA1217 its incorrect here https://github.com/infor-design/design-system/blob/master/design-tokens/theme-uplift/color-palette.json#L71 (also fix this at the same time)

If we go to the page outside of the docs page its just keeping the background white no matter the theme as i thought was a good idea at the time http://latest-enterprise.demo.design.infor.com/components/colors/example-index.html?theme=uplift&variant=dark

Expected behavior
Dont know but we have these three options

  1. Change the page to change background color, but add something like a border around each color so its noticeable?
  2. Keep as is with white in all themes and remove the theme switch ability from https://design.infor.com/code/ids-enterprise/4.25.0/colors
  3. Remove the extra "strip" on top when changing themes on https://design.infor.com/code/ids-enterprise/4.25.0/colors

Version

  • ids-enterprise: [e.g. v4.25]

Screenshots
Screen Shot 2020-02-06 at 9 24 56 AM

Platform

  • Chrome

Additional context
Originated from an internal Email

[2] uplift theme type

Most helpful comment

I think we should remove the labels to the right of the color swatches (90% white, 50% black, etc...)
I don't think they're accurate for the subtle themes and I don't think they add anything for the vibrant themes. I'm worried they'll just add confusion.

All 8 comments

cc @kentonquatman @kentonquatman

I would expect the background change to dark so we have kind of preview how the palette looks in dark mode. Even more, I would expect there might be eventually different palette in dark mode, but that might require palette which will not mention colors directly, but items or cases where such colors shall be used. If we have single color paletter for light dark and contrast then we don't need to show it 3 times with some dummy strip at the top.

The problem is the colors are for all three themes. But i could change the background again. It just means one color will be "invisible" which will probably work ok if we stick a 1px white border around the colors or something.

We could use a 1px border with 20% opacity around each swatch. The border color could be black by default, and switched to white for the dark theme.

Example: https://www.figma.com/file/AyWzji2JTkmSNgTenMhLY4/Color-Palette?node-id=0%3A1

Passed QA testing on all browsers. Tested in http://master-enterprise.demo.design.infor.com/components/colors/example-index.html. Will retest once beta is deployed.

I think we should remove the labels to the right of the color swatches (90% white, 50% black, etc...)
I don't think they're accurate for the subtle themes and I don't think they add anything for the vibrant themes. I'm worried they'll just add confusion.

Will do @kentonquatman wasnt sure of that either but just kept them as per the design to start.

removed the labels to the right of the color swatches (90% white, 50% black, etc...). will take a while to deploy but its done

Was this page helpful?
0 / 5 - 0 ratings