Skip to content

Commit

Permalink
Merge pull request #277 from ckeditor/i/6517-ck-blurred
Browse files Browse the repository at this point in the history
Other: The selection inside the `InlineEditableUIView` should be grey when the editor is blurred. Closes #6517.
  • Loading branch information
oleq authored Apr 9, 2020
2 parents 16214fe + f525206 commit ed9fcdb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
@import "../../../mixins/_focus.css";
@import "../../mixins/_button.css";

:root {
--ck-color-editable-blur-selection: hsl(0, 0%, 85%);
}

.ck.ck-editor__editable:not(.ck-editor__nested-editable) {
@mixin ck-rounded-corners;

Expand Down Expand Up @@ -40,6 +44,11 @@
& > *:last-child {
margin-bottom: var(--ck-spacing-large);
}

/* https://github.com/ckeditor/ckeditor5/issues/6517 */
&.ck-blurred ::selection {
background: var(--ck-color-editable-blur-selection);
}
}

/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */
Expand Down

This file was deleted.

0 comments on commit ed9fcdb

Please sign in to comment.