designsystemet icon indicating copy to clipboard operation
designsystemet copied to clipboard

How do we solve inverted componts with new color scale

Open Febakke opened this issue 1 year ago • 1 comments

Components

  • spinner
  • link
  • tooltip

Problem

We will remove our inverted components and tokens. Will theese components be able to handle this change? This is mostly a problem in Figma

  • [ ] Create suggestion in Figma

Febakke avatar May 07 '24 08:05 Febakke

We will "flip" the scale for tooltipmeaning that we will use text with high contrast as background and a background color as text. This will solve this issue and give high contrast on the surface and text.

It should work in code and Figma

Febakke avatar May 14 '24 08:05 Febakke

Users will solve this by using data-attr data-ds-color-mode to scope CSS variables for elements

mimarz avatar May 30 '24 08:05 mimarz

This is done in #1849

mrosvik avatar May 31 '24 08:05 mrosvik