Skip to content

Commit

Permalink
fixed icon styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaKozlova committed Feb 14, 2025
1 parent 306c796 commit d746f72
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,16 @@ const useRootStyles = makeStyles({
':hover': {
backgroundColor: tokens.colorBrandBackgroundHover,
color: tokens.colorNeutralForegroundOnBrand,
[`& .${iconFilledClassName}`]: {
color: tokens.colorNeutralForegroundOnBrand,
},
},
':active': {
backgroundColor: tokens.colorBrandBackgroundPressed,
color: tokens.colorNeutralForegroundOnBrand,
[`& .${iconFilledClassName}`]: {
color: tokens.colorNeutralForegroundOnBrand,
},
},
},
medium: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,14 @@ const useDismissIconStyles = makeStyles({
color: tokens.colorCompoundBrandForeground1Pressed,
},
},
selected: {
':hover': {
color: tokens.colorNeutralForegroundOnBrand,
},
':active': {
color: tokens.colorNeutralForegroundOnBrand,
},
},
});

export const usePrimaryTextStyles = makeStyles({
Expand Down Expand Up @@ -399,6 +407,7 @@ export const useTagStyles_unstable = (state: TagState): TagState => {
dismissIconStyles.base,
dismissIconStyles[size],
!state.disabled && dismissIconStyles[appearance],
selected && dismissIconStyles.selected,
state.dismissIcon.className,
);
}
Expand Down

0 comments on commit d746f72

Please sign in to comment.