Repository navigation
Patch Changes
-
#86
a866d14Thanks @ynotdraw! - Adds Alert Dialog,slab-alert-dialog: a modal Dialog withrole="alertdialog"for a question that needs an answer, such as confirming a delete. It has a built-in Cancel button that focus starts on, adescriptionthat's read with the label, and no light dismiss. Change the Cancel button's text withcancel-label, or withalertDialogCancelinregisterStrings(). -
#88
8c56b61Thanks @ynotdraw! - Adds Date Picker,slab-date-picker: a Date Field with a button that opens a Calendar in a popover, so the picker looks and works the same in every browser and can be styled. Pick a day with the mouse or keyboard, or open it with Alt+ArrowDown from the input. -
#96
4f8ec31Thanks @ynotdraw! - Adds Date Range Picker,slab-date-range-picker: a Date Range Field with a button that opens a range Calendar in a popover, so the start and end are picked in one calendar that looks and works the same in every browser and can be styled. Open it with the button or with Alt+ArrowDown from either input. -
#98
8a8486fThanks @ynotdraw! - Adds Grid List,slab-grid-listandslab-grid-list-item: a list of rows that can hold their own buttons, links and checkboxes, like React Aria's GridList. Tab reaches it once, Up and Down move between rows, Left and Right move between a row and its controls, and Escape goes back to the row. Setselection-modeto"single"or"multiple"to select rows with a click, Space or Enter. -
#90
2e78fc6Thanks @ynotdraw! - Hover Card points its anchor'saria-detailsat the card's content, so a screenreader can tell there's more about the anchor, and has alabelattribute that makes the card a group named by it. -
#97
0e7020eThanks @ynotdraw! - Menu has submenus. Put aslab-menuinside another with aslab-menu-itemas its anchor, and it opens beside that Menu Item. The Right arrow, Enter, Space, a click, or resting the pointer on the Menu Item for a moment opens it. Left and Escape close it and return focus to its Menu Item, and a click on any Menu Item in it closes every Menu. In a right-to-left page, Left and Right swap. -
#87
1016b06Thanks @ynotdraw! - Adds Search Field,slab-search-field: a native search input with a button that clears it, and Escape that clears it in every browser. It's form-associated like Text Field. -
#89
80636f5Thanks @ynotdraw! - Adds Sortable List,slab-sortable-listandslab-sortable-list-item: a list the user puts in order by dragging each item's handle, or with Space, the arrow keys, Home and End. Screenreaders are told where an item is as it's picked up, moved, dropped or put back. -
#94
d9a5acdThanks @ynotdraw! - Adds Table,slab-table, withslab-table-head,slab-table-body,slab-table-foot,slab-table-row,slab-table-column-headerandslab-table-cell: a table that components can render rows and cells into, laid out like a native<table>with the same roles. AsortableColumn Header is a button that sorts its column, setsaria-sort, dispatches "sort" and tells screenreaders how the column is sorted. Change what they're told withtableSortedinregisterStrings(). -
#85
9239b91Thanks @ynotdraw! - Toggle Button is new: a native<button>witharia-pressed, for one setting that's on or off, such as Bold or Mute. A click, Space or Enter presses it or releases it. -
#99
699f5b2Thanks @ynotdraw! - Listbox and Combobox have avirtualattribute for lists of thousands of Options. Only the Options in or near view are laid out, with spacers in place of the rest, while the keys, typeahead, filtering and selection still reach every Option. Rendered Options getaria-posinsetandaria-setsize, and the active one stays in the accessibility tree when it's scrolled away from.Listbox and Combobox are also much faster with long lists whether or not they're virtual: they no longer do work for every Option each time one of them connects or changes, which made a thousand Options take seconds to appear.