This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #250 from ckeditor/i/5580
Fix: Enabled additional box-shadow on `.ck-button` to meet WCAG AA recommendations. Adjusted the color of the `--ck-color-focus-border` for the same reason (editables, widget selection, etc.). Closes ckeditor/ckeditor5#5580. Also: * Optimized the color gird component for WCAG AA. * Imported insert table UI styles from ckeditor5-table (code refactoring). * Improved the table UI contrast and accessibility. BREAKING CHANGE: The `--ck-color-focus-shadow` custom property is now `--ck-color-focus-outer-shadow`.
- Loading branch information
Showing
7 changed files
with
69 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
|
||
:root { | ||
--ck-insert-table-dropdown-padding: 10px; | ||
--ck-insert-table-dropdown-box-height: 11px; | ||
--ck-insert-table-dropdown-box-width: 12px; | ||
--ck-insert-table-dropdown-box-margin: 1px; | ||
} | ||
|
||
.ck .ck-insert-table-dropdown__grid { | ||
/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */ | ||
width: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2); | ||
padding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0; | ||
} | ||
|
||
.ck .ck-insert-table-dropdown__label { | ||
text-align: center; | ||
} | ||
|
||
.ck .ck-insert-table-dropdown-grid-box { | ||
width: var(--ck-insert-table-dropdown-box-width); | ||
height: var(--ck-insert-table-dropdown-box-height); | ||
margin: var(--ck-insert-table-dropdown-box-margin); | ||
border: 1px solid var(--ck-color-base-border); | ||
border-radius: 1px; | ||
|
||
&.ck-on { | ||
border-color: var(--ck-color-focus-border); | ||
background: var(--ck-color-focus-outer-shadow); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters