소스 검색

Added a transparent border to all buttons to prevent flickering when the focus border shows up.

Aleksander Nowodzinski 8 년 전
부모
커밋
a8b956ee22
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css

+ 3 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css

@@ -31,6 +31,9 @@ a.ck-button {
 	/* Enable font size inheritance, which allows fluid UI scaling. */
 	font-size: inherit;
 
+	/* Avoid flickering when the foucs border shows up. */
+	border: 1px solid transparent;
+
 	&:focus {
 		@mixin ck-focus-ring;
 		@mixin ck-box-shadow var(--ck-focus-outer-shadow);