Skip to content

Commit

Permalink
Update buttons border
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Oct 25, 2024
1 parent 97ab29e commit 6a15c8d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions fabric/src/components/Button/VisualButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,11 @@ export const StyledButton = styled.span<StyledProps>(
borderRadius: 'button',
pointerEvents: $disabled ? 'none' : 'initial',
minHeight: $small ? 32 : 40,
boxShadow: variant !== 'tertiary' && !$disabled ? shadow : 'none',

'&:hover': {
color: fgHover,
backgroundColor: isTertiaryIcon ? undefined : bgHover,
borderColor: isTertiaryIcon ? undefined : borderHover,
boxShadow: variant !== 'tertiary' && !$disabled ? shadow : 'none',
},
'&:active': {
color: fgPressed,
Expand Down
4 changes: 2 additions & 2 deletions fabric/src/theme/tokens/baseTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export const baseTheme: Omit<FabricTheme, 'colors' | 'scheme'> = {
cardInteractive: '1px 3px 6px rgba(0, 0, 0, 0.15)',
cardActive: ' 0 0 0 1px var(--fabric-focus), 0 1px 5px rgba(0, 0, 0, 0.2)',
cardOverlay: '4px 8px 24px rgba(0, 0, 0, 0.2)',
buttonPrimary: `1px 2px 7px var(--fabric-shadowButtonPrimary)`,
buttonPrimary: `0px 0px 0px 3px var(--fabric-shadowButtonPrimary)`,
buttonSecondary: `1px 2px 1px var(--fabric-shadowButtonSecondary)`,
buttonInverted: `1px 2px 7px var(--fabric-shadowButtonInverted)`,
buttonInverted: `0px 0px 0px 3px var(--fabric-shadowButtonInverted)`,
},
zIndices: {
sticky: 10,
Expand Down
4 changes: 2 additions & 2 deletions fabric/src/theme/tokens/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const colors = {
borderButtonPrimaryHover: yellowScale[100],
borderButtonPrimaryPressed: yellowScale[100],
borderButtonPrimaryDisabled: 'transparent',
shadowButtonPrimary: 'transparent',
shadowButtonPrimary: yellowScale[100],

backgroundButtonSecondary: black,
backgroundButtonSecondaryFocus: black,
Expand Down Expand Up @@ -112,7 +112,7 @@ const colors = {
borderButtonInvertedHover: grayScale[50],
borderButtonInvertedPressed: grayScale[50],
borderButtonInvertedDisabled: 'transparent',
shadowButtonInverted: 'transparent',
shadowButtonInverted: grayScale[50],
}

export const colorTheme = {
Expand Down

0 comments on commit 6a15c8d

Please sign in to comment.