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 #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 ckeditor/ckeditor5#6517.
  • Loading branch information
oleq authored Apr 9, 2020
2 parents e50e1bf + a3f8f4a commit 8ad92eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
9 changes: 9 additions & 0 deletions theme/ckeditor5-ui/components/editorui/editorui.css
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
19 changes: 0 additions & 19 deletions theme/ckeditor5-ui/components/formheader/formheader.css

This file was deleted.

0 comments on commit 8ad92eb

Please sign in to comment.