Keyboard SupportĪny button element inside the DataTable used for cases like filter, row expansion, edit are tabbable and can be used with space and enter keys. Paginator is a standalone component used inside the DataTable, refer to the paginator for more information about the accessibility features. The row editor controls are button elements with aria.editRow, aria.cancelEdit and aria.saveEdit used for the aria-label. filterInputProps of the Column component can be used to define aria labels for the built-in filter components, if a custom component is used with templating you also may define your own aria labels as well.Įditable cells use custom templating so you need to manage aria roles and attributes manually if required. The footer buttons similarly use aria.clear and aria.apply properties. Buttons to add rules on the other hand utilize aria.addRule and aria.removeRule properties. The operator dropdown use aria.filterOperator and filter constraints dropdown use aria.filterConstraint properties. Popop menu has dialog role with aria-modal as focus is kept within the overlay. The filter menu button use aria.showFilterMenu and aria.hideFilterMenu properties as aria-label in addition to the aria-haspopup, aria-expanded and aria-controls to define the relation between the button and the overlay. Value to describe the buttons is derived from aria.expandRow and llapseRow properties of the locale API. Keep animated icons as small as possible. You can use an animated GIF server icon if your server has been server boosted. Keep your icon design simple so it looks good when viewed at a small scale in Discord. Keep everything important inside of the circle shape. The element to expand or collapse a row is a button with aria-expanded and aria-controls properties. Here's a quick recap: The server icon size should be 512x512 pixels or larger. When a row is selected, aria-selected is set to true on a row. Similarly header checkbox uses selectAll and unselectAll keys. The label to describe them is retrieved from the lectRow and aria.unselectRow properties of the locale API. Sortable headers utilizer aria-sort attribute either set to "ascending" or "descending".īuilt-in checkbox and radiobutton components for row selection use checkbox and radiobutton. ![]() Header, body and footer elements use rowgroup, rows use row role, header cells have columnheader and body cells use cell roles. This property allows passing aria roles and attributes like aria-label and aria-describedby to define the table for readers. DataTable uses a table element whose attributes can be extended with the tableProps option.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |