Skip to content

Commit

Permalink
fix(mobile): remove all focus style for link and button (toeverything…
Browse files Browse the repository at this point in the history
  • Loading branch information
CatsJuice committed Sep 12, 2024
1 parent ba81b1a commit 8bf0458
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/frontend/component/src/ui/button/button.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/component/src/ui/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions packages/frontend/mobile/src/styles/mobile.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ globalStyle('html', {
overflowY: 'auto',
background: cssVarV2('layer/background/secondary'),
});

globalStyle('a:focus', {
outline: 'none',
});
globalStyle('button:focus', {
outline: 'none',
});

0 comments on commit 8bf0458

Please sign in to comment.