Skip to content

Commit

Permalink
fix(buttonicon): fixes pseudo-state bugs for ButtonIcon (#478)
Browse files Browse the repository at this point in the history
Updates some instances of active hover states to match the intended designs

477
  • Loading branch information
liaprins authored Jun 1, 2023
1 parent dc02ec8 commit 76eb10e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/components/src/core/ButtonIcon/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ const primary = <ButtonIconSize extends keyof ButtonIconSizeToTypes>(
&:hover {
background: ${colors?.gray[200]};
color: ${sdsSize === "small" ? colors?.gray[600] : colors?.primary[400]};
color: ${sdsSize === "small"
? colors?.primary[600]
: colors?.primary[400]};
}
&:active {
Expand All @@ -79,7 +81,8 @@ const secondary = <ButtonIconSize extends keyof ButtonIconSizeToTypes>(
return css`
color: ${colors?.gray[500]};
&:hover {
&:hover,
&:active {
background: none;
color: ${colors?.primary[400]};
}
Expand Down

0 comments on commit 76eb10e

Please sign in to comment.