Skip to content

Commit

Permalink
chore(documentation): improve storybook contrast on mode buttons (#3715)
Browse files Browse the repository at this point in the history
  • Loading branch information
leagrdv authored Oct 10, 2024
1 parent af9df49 commit e4c188f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/documentation/.storybook/addons/addons.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@use '@swisspost/design-system-styles/core' as post;

.addon-label {
color: post.$body-color !important;
}

.addon-dropdown {
min-width: 12rem;
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ function StylesSwitcher() {
</div>
}
>
<IconButton size="medium">Theme: {currentTheme}</IconButton>
<IconButton className="addon-label" size="medium">
Theme: {currentTheme}
</IconButton>
</WithTooltip>

{/* Channel dropdown */}
Expand All @@ -186,7 +188,9 @@ function StylesSwitcher() {
</div>
}
>
<IconButton size="medium">Chanel: {currentChannel}</IconButton>
<IconButton className="addon-label" size="medium">
Chanel: {currentChannel}
</IconButton>
</WithTooltip>

{/* Mode dropdown */}
Expand All @@ -208,7 +212,9 @@ function StylesSwitcher() {
</div>
}
>
<IconButton size="medium">Mode: {currentMode}</IconButton>
<IconButton className="addon-label" size="medium">
Mode: {currentMode}
</IconButton>
</WithTooltip>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function VersionSwitcher() {
</>
)}
>
<IconButton placeholder="Versions">
<IconButton placeholder="Versions" className="addon-label">
v{CURRENT_MINOR_VERSION}
<post-icon name="2052"></post-icon>
</IconButton>
Expand Down

0 comments on commit e4c188f

Please sign in to comment.