Closed dtopalov closed 1 year ago
Automation of the test process may be based on: https://github.com/telerik/kendo-themes/issues/2468
When fixing the issue keep in mind the WCAG 2.2. compliance requirements:
In addition, let's have a testing solution for color-contrast as well. https://github.com/telerik/kendo-themes/blob/develop/packages/default/scss/core/functions/_colors.scss
In case the evaluation of the report needs design, please update the parent issue with design & front-end R2 planning:
https://github.com/telerik/web-components-planning/issues/125
color-contrast
rule for violations;color-contrast
rule for incomplete;color-contrast-enhanced
rule for violations;default-ocean-blue
swatch;color-contrast
and focus-contrast
violations and reports color-contrast
incomplete and color-contrast-enhanced
violations;After a huge effort from Dimitar, he managed to reduce the focus indicator contrast issues to the following set:
TimeSelector
: TimeList in the Popup;Button
: In Outline mode: fails contrast against border.Button
: Warning color does not meet contrast requirementsChip
and MenuButton
: In Outline mode with Base color: fails contrast against border.ColorPalette
: Tile focus indicatorBottomNavigation
: Item focusCard
: when k-focus and k-selected are used simultaneouslyRating
: fails contrast for the focus indicator on its itemsStepper
: the focus indicator of a not completed (or current) step in Stepper: fails contrast against white backgroundBottomNavigation
: Most colors apart from the default (gray) fail items text contrast;Chip
: Most colors apart from the default (gray) fail text contrast;TreeMap
: Colors used in the TreeMap do not ensure text contrast;Loader
: When Loader is used without panel its text does not contrast against the overlay color;Button
: Warning color does not meet minimum text contrast requirements;Avatar
: Warning color does not meet minimum text contrast requirements;Suggested text that can be added to the docs and the VPAT, so those properly represent the state of our components:
BottomNavigation, ColorPalette and Rating fail WCAG success criteria 1.4.11 Non-text contrast for the focus indicator on its items.
Describe the bug When the Default theme Ocean Blue swatch is applied, multiple accessibility criteria for contrast across multiple components are violated.
To reproduce Some of the examples include (but there are probably much more, for example buttons in toolbars scenarios):
Expected behavior When the swatch is applied no WCAG criteria related to contrast ratio are violated across all components and suites.
Affected package
Affected suites
Affected browsers
Build system information (please remove the unneeded items)
Additional context All Kendo products are undergoing a major effort for improved compliance with the accessibility standards and best practices. Having a theme/swatch that complies with all established requirements is an integral part of delivering accessible and compliant components.