Skip to content

Commit

Permalink
Add comment to custom bar style for the Button component
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Mar 18, 2024
1 parent db4e08a commit a76f857
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/ui/components/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ const StyledButton = styled('button', {
})(),
...(variant === 'ghost'
? {
// This is a hack to apply bar styles to the button as soon as it is part of a bar
// It is a temporary solution until we have implemented Theming 2.0.
'.sb-bar &': {
background: (() => {
if (active) return transparentize(0.9, theme.barTextColor);
Expand Down

0 comments on commit a76f857

Please sign in to comment.