mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
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',
|
||||
boxShadow: `0 0 0 1px ${cssVarV2('layer/insideBorder/primaryBorder')}`,
|
||||
},
|
||||
'&[data-mobile=true]:focus-visible::after': {
|
||||
content: 'none',
|
||||
display: 'none',
|
||||
},
|
||||
},
|
||||
});
|
||||
export const content = style({
|
||||
|
||||
@@ -162,6 +162,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
||||
data-size={size}
|
||||
data-variant={variant}
|
||||
data-no-hover={withoutHover || undefined}
|
||||
data-mobile={environment.isMobileEdition}
|
||||
onClick={handleClick}
|
||||
>
|
||||
<IconSlot
|
||||
|
||||
@@ -22,3 +22,10 @@ globalStyle('html', {
|
||||
overflowY: 'auto',
|
||||
background: cssVarV2('layer/background/secondary'),
|
||||
});
|
||||
|
||||
globalStyle('a:focus', {
|
||||
outline: 'none',
|
||||
});
|
||||
globalStyle('button:focus', {
|
||||
outline: 'none',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user