Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #140 from ckeditor/t/ckeditor5/815
Browse files Browse the repository at this point in the history
Fix: The input focus outline should not stand out too much. Closes ckeditor/ckeditor5#815.
  • Loading branch information
oleq committed Feb 16, 2018
2 parents 18809f6 + cfbe036 commit 0ec33f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions theme/ckeditor5-ui/components/inputtext/inputtext.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
/* This is important to stay of the same height as surrounding buttons */
min-height: var(--ck-ui-component-min-height);

transition-property: box-shadow,border;
transition: .2s ease-in-out;

&:focus {
@mixin ck-focus-ring;
@mixin ck-box-shadow var(--ck-focus-outer-shadow), var(--ck-inner-shadow);
Expand Down
2 changes: 1 addition & 1 deletion theme/ckeditor5-ui/globals/_focus.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* A visual style of focused element's outer shadow.
*/
--ck-focus-outer-shadow: 0 0 3px 1px var(--ck-color-focus-shadow);
--ck-focus-outer-shadow: 0 0 3px var(--ck-color-focus-shadow);

/**
* A visual style of focused element's border or outline.
Expand Down

0 comments on commit 0ec33f6

Please sign in to comment.