[
    {
        "h2": "Accessibility Support"
    },
    {
        "p": "Out of the box, the Telerik and Kendo UI ColorPicker provides extensive accessibility support and enables users with disabilities to acquire complete control over its features."
    },
    {
        "p": "The ColorPicker is compliant with the [Web Content Accessibility Guidelines (WCAG) 2.2 standards](https://www.w3.org/TR/WCAG22/) and [Section 508](http://www.section508.gov/) requirements, follows the [Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA)](https://www.w3.org/WAI/ARIA/apg/) best practices for implementing the [keyboard navigation](#keyboard-navigation) for its `component` role, provides options for [managing its focus](#managing-the-focus) and is tested against the most popular [screen readers](#screen-readers)."
    },
    {
        "h3": "WAI-ARIA"
    },
    {
        "p": "This section lists the selectors, attributes, and behavior patterns supported by the component and its composite elements, if any."
    },
    {
        "p": "The ColorPicker popup contains in itself ColorGradient, ColorPalette, a UI to switch between them, and a button to reset its value. All the containing elements must implement their own specification apart from the ColorGradient element where some changes are required."
    },
    {
        "h4": "ColorPicker Wrapping Element"
    },
    {
        "table": {
            "headers": [
                "Selector",
                "Attribute",
                "Usage"
            ],
            "rows": [
                {
                    "Selector": "`.k-colorpicker`",
                    "Attribute": "`role=combobox`",
                    "Usage": "The focusable element of the component should have role `combobox` (an input with popup)."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-label` or `aria-labelledby`",
                    "Usage": "The component needs an accessible name to be assigned to it. Must also include the currently selected value in the component."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-haspopup=dialog`",
                    "Usage": "Indicates the component has a Dialog Popup."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-expanded`",
                    "Usage": "Announces the state of the visibility of the popup."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-controls=.k-colorpicker-popup id`",
                    "Usage": "Points to the popup element. Signifies that the `combobox` element controls the `dialog`."
                },
                {
                    "Selector": "",
                    "Attribute": "`tabindex=0`",
                    "Usage": "The element must be focusable."
                },
                {
                    "Selector": "`.k-invalid,.ng-invalid`",
                    "Attribute": "`aria-invalid=true`",
                    "Usage": "Attribute is rendered only when the picker is in form and announces the valid state of the component."
                },
                {
                    "Selector": "`.k-colorpicker.k-disabled`",
                    "Attribute": "`aria-disabled=true`",
                    "Usage": "Attribute is rendered only when the picker is disabled."
                },
                {
                    "Selector": "`.k-colorpicker.k-disabled .k-button`",
                    "Attribute": "`disabled` or `aria-disabled=true`",
                    "Usage": "Attribute is rendered only when the picker is disabled."
                }
            ]
        }
    },
    {
        "h4": "ColorGradient in the Popup"
    },
    {
        "table": {
            "headers": [
                "Selector",
                "Attribute",
                "Usage"
            ],
            "rows": [
                {
                    "Selector": "`.k-colorgradient`",
                    "Attribute": "`role=none/undefined`",
                    "Usage": "The ColorGradient element must have its role removed."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-label=undefined`",
                    "Usage": "The ColorGradient element must have its `aria-label` attribute removed."
                },
                {
                    "Selector": "",
                    "Attribute": "`tabindex=-1/undefined`",
                    "Usage": "The ColorGradient must be removed from the page tab sequence."
                }
            ]
        }
    },
    {
        "h4": "Adaptive Mode"
    },
    {
        "p": "When the component is in adaptive mode, the popup element follows the specifications of the ActionSheet component."
    },
    {
        "link": {
            "title": "ActionSheet accessibility specification",
            "source": "{{actionsheet_a11y_link}}"
        }
    },
    {
        "table": {
            "headers": [
                "Selector",
                "Attribute",
                "Usage"
            ],
            "rows": [
                {
                    "Selector": "`.k-colorgradient`",
                    "Attribute": "`role=none/undefined`",
                    "Usage": "The ColorGradient element must have its role removed."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-label=undefined`",
                    "Usage": "The ColorGradient element must have its \"aria-label\" attribute removed."
                }
            ]
        }
    },
    {
        "h3": "Keyboard Shortcuts"
    },
    {
        "h4": "When k-colorpicker element is focused"
    },
    {
        "table": {
            "headers": [
                "Shortcut",
                "Behavior"
            ],
            "rows": [
                {
                    "Shortcut": "`Alt/Opt(Mac) Down`",
                    "Behavior": "Opens pop up"
                },
                {
                    "Shortcut": "`Enter`",
                    "Behavior": "Opens pop up"
                },
                {
                    "Shortcut": "`Alt/Opt(Mac) Up` or `Esc`",
                    "Behavior": "Closes popup"
                }
            ]
        }
    },
    {
        "h4": "When focus is in the Popup"
    },
    {
        "p": "When opened, the Popup element uses Tab navigation to iterate over its inner elements. The focus remains trapped within the Popup. The inner elements (**ColorPlatte**, **ColorGradient** and **Buttons**s implement their own specification)."
    },
    {
        "table": {
            "headers": [
                "Shortcut",
                "Behavior"
            ],
            "rows": [
                {
                    "Shortcut": "`Esc`",
                    "Behavior": "Closes Popup and moves focus back to k-colorpicker element."
                },
                {
                    "Shortcut": "`Tab`",
                    "Behavior": "Navigates to the next focusable element in the Popup. If current focus is on the last element, moves focus to the first focusable item in the Popup."
                },
                {
                    "Shortcut": "`Shift` + `Tab`",
                    "Behavior": "Navigates to the previous focusable element in the Popup. If current focus is on the first element, moves focus to the last focusable item in the Popup."
                },
                {
                    "Shortcut": "`Enter`",
                    "Behavior": "For button items, executes the currently focused button action."
                }
            ]
        }
    },
    {
        "h4": "ActionSheet Popup"
    },
    {
        "p": "In adaptive mode, the popup element of the ColorPicker has to implement the keyboard navigation specification for an ActionSheet component."
    },
    {
        "link": {
            "title": "ActionSheet  specification",
            "source": "{{actionsheet_kb_link}}"
        }
    },
    {
        "table": {
            "headers": [
                "Shortcut",
                "Behavior"
            ],
            "rows": [
                {
                    "Shortcut": "`Esc`",
                    "Behavior": "If any of the colorgradient elements are currently focused, bring focus back to the k-colorpicker element."
                }
            ]
        }
    },
    {
        "h3": "Testing"
    },
    {
        "p": "The ColorPicker has been extensively tested automatically with [axe-core](https://github.com/dequelabs/axe-core) and manually with the most popular screen readers."
    },
    {
        "h3": "Screen Readers"
    },
    {
        "p": "The ColorPicker has been tested with the following screen readers and browsers combinations:"
    },
    {
        "table": {
            "headers": [
                "Environment",
                "Tool"
            ],
            "rows": [
                [
                    "Firefox",
                    "NVDA"
                ],
                [
                    "Chrome",
                    "JAWS"
                ],
                [
                    "Microsoft Edge",
                    "JAWS"
                ]
            ]
        }
    },
    {
        "h3": "Resources"
    },
    {
        "ul": [
            {
                "link": {
                    "source": "https://www.w3.org/WAI/ARIA/apg/patterns/combobox/",
                    "title": "ARIA Authoring Practices: Combobox Pattern "
                }
            }
        ]
    }
]