Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/light-toys-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Updated form select arrow's color to be visible in dark mode.
9 changes: 4 additions & 5 deletions packages/styles/src/functions/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,19 @@
// Hardcoded colors because CSS variables cannot be used as fill color of background-image
$arrow-color-map: (
'enabled-light': #050400,
'enabled-dark': #fff,
'enabled-dark': #050400,
'hover-light': #504f4b,
'hover-dark': #fff,
'hover-dark': #504f4b,
'selected-light': #050400,
'selected-dark': #fff,
'selected-dark': #050400,
'disabled-light': #696864,
'disabled-dark': #fff,
'disabled-dark': #fcfcfc99,
'enabled-hcm-light': #050400,
'enabled-hcm-dark': #fff,
'selected-hcm-dark': #fff,
'hover-hcm-dark': #fff,
'hover-hcm-light': #050400,
);

@if ($state) {
$icon: icons.get-colored-svg-url('2052', map.get($arrow-color-map, '#{$state}-#{$mode}'));
$state: url('#{$icon}');
Expand Down
Loading