Fix 68730 - Mobile. Remove icon hover logic on non-hover devices
This commit is contained in:
parent
947543bf3c
commit
3f33334fc7
@ -43,10 +43,12 @@ const StyledIconTheme = styled(StyledIcon)<
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
svg {
|
||||
path {
|
||||
fill: ${(props) => props.$currentColorScheme?.main?.accent};
|
||||
@media (hover: hover) {
|
||||
&:hover {
|
||||
svg {
|
||||
path {
|
||||
fill: ${(props) => props.$currentColorScheme?.main?.accent};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,12 +48,15 @@ const StyledOuter = styled.div<IconButtonProps>`
|
||||
stroke: ${props.color || props.theme.iconButton.color};
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
svg {
|
||||
path {
|
||||
stroke: ${props.isDisabled
|
||||
? props.theme.iconButton.color
|
||||
: props.color || props.theme.iconButton.hoverColor};
|
||||
|
||||
@media (hover: hover) {
|
||||
&:hover {
|
||||
svg {
|
||||
path {
|
||||
stroke: ${props.isDisabled
|
||||
? props.theme.iconButton.color
|
||||
: props.color || props.theme.iconButton.hoverColor};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -72,12 +75,15 @@ const StyledOuter = styled.div<IconButtonProps>`
|
||||
fill: ${props.color || props.theme.iconButton.color};
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
svg {
|
||||
path {
|
||||
fill: ${props.isDisabled
|
||||
? props.theme.iconButton.color
|
||||
: props.color || props.theme.iconButton.hoverColor};
|
||||
|
||||
@media (hover: hover) {
|
||||
&:hover {
|
||||
svg {
|
||||
path {
|
||||
fill: ${props.isDisabled
|
||||
? props.theme.iconButton.color
|
||||
: props.color || props.theme.iconButton.hoverColor};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user