There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(mobile): remove all focus style for link and button (#8208)
CatsJuice8bf0458ef470
diff --git a/packages/frontend/component/src/ui/button/button.css.ts b/packages/frontend/component/src/ui/button/button.css.tsindex 94d19739ef..19452b46d8 100644--- a/packages/frontend/component/src/ui/button/button.css.ts+++ b/packages/frontend/component/src/ui/button/button.css.ts@@ -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({diff --git a/packages/frontend/component/src/ui/button/button.tsx b/packages/frontend/component/src/ui/button/button.tsxindex ed25560e3e..cbccad7054 100644--- a/packages/frontend/component/src/ui/button/button.tsx+++ b/packages/frontend/component/src/ui/button/button.tsx@@ -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}><IconSlotdiff --git a/packages/frontend/mobile/src/styles/mobile.css.ts b/packages/frontend/mobile/src/styles/mobile.css.tsindex 0c00a2ea5e..436be23d78 100644--- a/packages/frontend/mobile/src/styles/mobile.css.ts+++ b/packages/frontend/mobile/src/styles/mobile.css.ts@@ -22,3 +22,10 @@ globalStyle('html', {overflowY: 'auto',background: cssVarV2('layer/background/secondary'),});++globalStyle('a:focus', {+ outline: 'none',+});+globalStyle('button:focus', {+ outline: 'none',+});