fix(mobile): remove all focus style for link and button (#8208)
This commit is contained in:
@@ -180,6 +180,10 @@ export const button = style({
|
|||||||
borderRadius: 'inherit',
|
borderRadius: 'inherit',
|
||||||
boxShadow: `0 0 0 1px ${cssVarV2('layer/insideBorder/primaryBorder')}`,
|
boxShadow: `0 0 0 1px ${cssVarV2('layer/insideBorder/primaryBorder')}`,
|
||||||
},
|
},
|
||||||
|
'&[data-mobile=true]:focus-visible::after': {
|
||||||
|
content: 'none',
|
||||||
|
display: 'none',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
export const content = style({
|
export const content = style({
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
|||||||
data-size={size}
|
data-size={size}
|
||||||
data-variant={variant}
|
data-variant={variant}
|
||||||
data-no-hover={withoutHover || undefined}
|
data-no-hover={withoutHover || undefined}
|
||||||
|
data-mobile={environment.isMobileEdition}
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
>
|
>
|
||||||
<IconSlot
|
<IconSlot
|
||||||
|
|||||||
@@ -22,3 +22,10 @@ globalStyle('html', {
|
|||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
background: cssVarV2('layer/background/secondary'),
|
background: cssVarV2('layer/background/secondary'),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
globalStyle('a:focus', {
|
||||||
|
outline: 'none',
|
||||||
|
});
|
||||||
|
globalStyle('button:focus', {
|
||||||
|
outline: 'none',
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user