소스 검색

Merge pull request #1431 from Gamaranto/button-outline

Remove Outline On Chrome
Bedeho Mender 4 년 전
부모
커밋
3c6c9b0eb2
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/app/src/shared/components/Button/Button.style.ts
  2. 4 0
      packages/app/src/shared/components/GlobalStyle/GlobalStyle.tsx

+ 1 - 1
packages/app/src/shared/components/Button/Button.style.ts

@@ -134,7 +134,7 @@ export const StyledButton = styled.button<ButtonStyleProps>`
 	align-items: center;
 	&:hover {
 		cursor: ${(props) => (!props.disabled && props.clickable ? 'pointer' : '')}
-	}
+	} 
 	&::selected {
 		background: transparent;
 	}

+ 4 - 0
packages/app/src/shared/components/GlobalStyle/GlobalStyle.tsx

@@ -18,6 +18,10 @@ const globalStyles = css`
     box-sizing: border-box;
   }
 
+  *:focus {
+    outline: 0;
+  }
+
   h1,
   h2,
   h3,