fix(segment): segment in toolbar uses correct contrast (#26353)

resolves #26350
This commit is contained in:
Liam DeBeasi
2022-11-23 11:53:01 -05:00
committed by GitHub
parent 4b501fd00c
commit 5a243ccebc
14 changed files with 29 additions and 2 deletions

View File

@ -201,9 +201,15 @@
// Segment Button: Toolbar w/ Color
// --------------------------------------------------
// Do not use the global or local CSS variable if the toolbar has a color
// Toolbar with Color, Checked
/**
* Use the contrast color as background since
* since the text color is the base color. Otherwise
* we will have contrast issues when using light/medium/dark
* palettes across light and dark mode.
*/
:host(.in-toolbar-color) .segment-button-indicator-background {
background: #fff;
background: #{current-color(contrast)};
}
// Toolbar with Color, Default Segment