Skip to content

Commit

Permalink
chore[DST-119]: add active state to buttons and active tokens b2b the…
Browse files Browse the repository at this point in the history
…me (#3265)
  • Loading branch information
sarahgm authored Aug 14, 2023
1 parent fd10c29 commit ad54c49
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/itchy-teachers-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marigold/theme-b2b": patch
---

chore[DST-119]: add active state to buttons and active tokens b2b theme
7 changes: 6 additions & 1 deletion themes/theme-b2b/src/components/Button.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,21 @@ export const Button: ThemeComponent<'Button'> = cva(
primary: [
'text-text-light bg-bg-primary',
'data-[hover]:text-text-light data-[hover]:bg-bg-primary-hover',
'active:hover:bg-bg-primary-active',
],
secondary: [
'text-text-light bg-bg-secondary data-[hover]:text-text-light data-[hover]:bg-bg-secondary-hover',
'active:hover:bg-bg-secondary-active',
],
ghost: [
'border-border-dark border border-solid',
'text-text-body',
'hover:bg-bg-hover',
'active:hover:bg-bg-secondary-active active:hover:text-text-light',
],
text: [
'text-text-body data-[hover]:bg-bg-hover active:hover:bg-bg-secondary-active active:hover:text-text-light',
],
text: ['text-text-body data-[hover]:bg-bg-hover'],
menu: [
'text-text-body bg-bg-body hover:text-text-light hover:bg-bg-secondary-hover',
],
Expand Down
2 changes: 2 additions & 0 deletions themes/theme-b2b/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,13 @@ export const colors = {
DEFAULT: brand.primary[600],
light: brand.primary[100],
hover: brand.primary[400],
active: brand.primary[700],
},

secondary: {
DEFAULT: brand.secondary[700],
hover: brand.secondary[600],
active: brand.secondary[800],
},

surface: {
Expand Down

0 comments on commit ad54c49

Please sign in to comment.