Skip to content

Commit

Permalink
remove text color change on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
atabel committed Dec 18, 2024
1 parent b4f7b65 commit 27ee630
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions src/chip.css.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {style, styleVariants, globalStyle} from '@vanilla-extract/css';
import {style, styleVariants} from '@vanilla-extract/css';
import * as mq from './media-queries.css';
import {vars} from './skins/skin-contract.css';
import {sprinkles} from './sprinkles.css';
Expand Down Expand Up @@ -72,16 +72,7 @@ export const interactive = style({
position: 'relative',
overflow: 'hidden',
userSelect: 'none',
'@media': {
[mq.supportsHover]: {
selectors: {
[`&:hover:not(${chipActive})`]: {
color: vars.colors.textActivated,
cursor: 'pointer',
},
},
},
},
cursor: 'pointer',
});

export const button = style({
Expand Down Expand Up @@ -141,19 +132,3 @@ export const rightPadding = styleVariants({
default: [sprinkles({paddingRight: {mobile: 20, desktop: 12}})],
withIcon: [sprinkles({paddingRight: {mobile: 16, desktop: 8}})],
});

globalStyle(`${interactive}:hover:not(${chipActive}) > ${icon}`, {
'@media': {
[mq.supportsHover]: {
color: vars.colors.controlActivated,
},
},
});

globalStyle(`${interactive}:hover:not(${chipActive}) > ${iconActive}`, {
'@media': {
[mq.supportsHover]: {
color: vars.colors.controlActivated,
},
},
});

0 comments on commit 27ee630

Please sign in to comment.