Skip to content

Commit

Permalink
Fix dotted icon button border
Browse files Browse the repository at this point in the history
Summary: After remove vscode-ui-toolkit, the fallback styles we bring in don't have a style defined for button-icon-hover-background. This caused it to use a weird default, making icons appear with a dotted outline, which we only want to happen for high contrast themes.

Reviewed By: quark-zju

Differential Revision: D58703422

fbshipit-source-id: 91773dd5f5be0a4cae7795714d5b0880ab787a1a
  • Loading branch information
evangrayk authored and facebook-github-bot committed Jun 18, 2024
1 parent 8fad380 commit d70a807
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/isl/src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const vars = {
fg: 'var(--foreground)',
border: 'var(--contrast-border)',
/** very bright border, usually only set in high-contrast themes */
activeBorder: 'var(--contrast-active-border)',
focusBorder: 'var(--focus-border)',
activeBorder: 'var(--contrast-active-border, transparent)',
focusBorder: 'var(--focus-border, transparent)',
};

export const buttonStyles = stylex.create({
Expand Down Expand Up @@ -60,7 +60,7 @@ export const buttonStyles = stylex.create({
borderColor: colors.subtleHoverDarken,
background: {
default: colors.subtleHoverDarken,
':hover': 'var(--button-icon-hover-background)',
':hover': 'var(--button-icon-hover-background, rgba(90, 93, 94, 0.31))',
},
borderRadius: '5px',
color: vars.fg,
Expand Down

0 comments on commit d70a807

Please sign in to comment.