ソースを参照

Merge pull request #1431 from Gamaranto/button-outline

Remove Outline On Chrome
Bedeho Mender 4 年 前
コミット
3c6c9b0eb2

+ 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,