[
    {
        "h2": "Accessibility Support"
    },
    {
        "p": "Out of the box, the Telerik and Kendo UI Filter provides extensive accessibility support and enables users with disabilities to acquire complete control over its features."
    },
    {
        "p": "The Filter 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 Filter component represents visually the structure of a filter object. As the filter object can contain nested objects, that hierarchical structure must be represented in the accessibility tree by the `role=tree` assigned to the component."
    },
    {
        "table": {
            "headers": [
                "Selector",
                "Attribute",
                "Usage"
            ],
            "rows": [
                {
                    "Selector": "`.k-filter-container`",
                    "Attribute": "`role=tree`",
                    "Usage": "Describes the hierarchical structure of the Filter component."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-label`",
                    "Usage": "Specifies a label for the Filter component."
                },
                {
                    "Selector": "`.k-filter-group-main,.k-filter-item`",
                    "Attribute": "`role=treeitem`",
                    "Usage": "Each FilterGroup and FilterExpression represent a separate `treeitem` in the Filter component structure."
                },
                {
                    "Selector": "`.k-filter-lines`",
                    "Attribute": "`role=group`",
                    "Usage": "Represents a group if items in the Filter component."
                },
                {
                    "Selector": "`.k-toolbar`",
                    "Attribute": "`role=toolbar`",
                    "Usage": "The role represents a collection of tools."
                },
                {
                    "Selector": "",
                    "Attribute": "`aria-label`",
                    "Usage": "Specifies a label for the toolbar."
                }
            ]
        }
    },
    {
        "p": "Each toolbar in the Filter should follow the specification for a ToolBar component. The elements inside the FilterGroup follow the ARIA specification applicable to their specific roles."
    },
    {
        "h3": "Managing the Focus"
    },
    {
        "p": "The Filter is a single tab stop component implementing the roving tab index pattern."
    },
    {
        "p": "The Filter UI represents the filter query object, which can be built using the component. As that object can contain inner objects, the result is a hierarchical structure, which is also reflected visually in the UI. In order to represent the same structure in the accessibility tree, the `role=tree` must be assigned to the entire component. The entire Filter is a single tab stop component. Navigation among items is available using `Up Arrow` and `Down Arrow`. Internal ToolBar navigation can be activated upon pressing `Enter` on a `treeitem`. Navigation returns back to the `tree` when pressing `Esc`."
    },
    {
        "h3": "Keyboard Shortcuts"
    },
    {
        "table": {
            "headers": [
                "Shortcut",
                "Behavior"
            ],
            "rows": [
                {
                    "Shortcut": "`Up Arrow`",
                    "Behavior": "Focuses the previous item (FilterGroup or FilterExpression) in the `tree`."
                },
                {
                    "Shortcut": "`Down Arrow`",
                    "Behavior": "Focuses the next item (FilterGroup or FilterExpression) in the `tree`."
                }
            ]
        }
    },
    {
        "p": "The FilterGroup or FilterExpression elements implement the KB navigation specification for the ToolBar component:"
    },
    {
        "link": {
            "title": "ToolBar  specification",
            "source": "{{toolbar_kb_link}}"
        }
    },
    {
        "p": "Upon deleting a FilterGroup/FilterExpression (pressing the `X` button), focus should be moved to the very next treeitem (FilterGroup/FilterExpression) in the Filter component. If there is no treeitem (FilterGroup/FilterExpression) after the deleted one, focus should be moved to the previous treeitem (FilterGroup/FilterExpression)."
    },
    {
        "h3": "Testing"
    },
    {
        "p": "The Filter 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 Filter 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/TR/wai-aria-1.2/#toolbar",
                    "title": "WAI-ARIA specification for toolbar"
                }
            },
            {
                "link": {
                    "source": "https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/examples/toolbar/",
                    "title": "ARIA Authoring Practices: Toolbar"
                }
            }
        ]
    }
]