Skip to content

Commit

Permalink
chore: [F36-893] change Button border color of active and focused sta…
Browse files Browse the repository at this point in the history
…tes (#2558)

* chore: [F36-893] change Button border color of active and focused states

* Create wise-candles-own.md
  • Loading branch information
maxcheremisin authored Aug 16, 2023
1 parent 903facb commit 384b4df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-candles-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@contentful/f36-button": patch
---

chore: [F36-893] change Button border color of active and focused states
9 changes: 0 additions & 9 deletions packages/components/button/src/Button/Button.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,7 @@ const variantToStyles = (variant: ButtonVariant): CSSObject => {
color: tokens.red600,
},
'&:active': variantActiveStyles(variant),
'&:focus': {
borderColor: tokens.gray300,
boxShadow: tokens.glowNegative,
},
'&:focus:not(:focus-visible)': {
borderColor: tokens.red600,
boxShadow: 'unset',
},
'&:focus-visible': {
borderColor: tokens.red700,
boxShadow: tokens.glowNegative,
},
};
Expand Down

1 comment on commit 384b4df

@vercel
Copy link

@vercel vercel bot commented on 384b4df Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.