Concepts
The behaviour rule
Where each primitive's behaviour comes from - the WAI-ARIA Authoring Practices first, Base UI where they have no rule - and how a difference is decided.
Every behaviour of every primitive comes from one rule: the WAI-ARIA Authoring Practices (APG) first; where the APG has no rule, Base UI.
The APG first
The APG describes each pattern's roles, states, keyboard and focus: the Dialog follows the modal dialog pattern, the Popover the dialog pattern without its modal parts, the Tooltip the tooltip pattern, the Menu the menu button pattern, the Tabs the tabs pattern, the Checkbox, the Switch, the RadioGroup, the Button and the Slider theirs, the Select the select-only combobox, the Combobox the combobox pattern, and the Calendar the grid of the date picker dialog example. Where it gives a rule, the primitive follows it, even when a popular library does something else. Some examples:
-
A modal dialog's popup sets
aria-modal="true", as the APG asks; Base UI relies on making the outside inert instead. -
Tabs select on focus by default (automatic activation, the APG's recommendation when a panel shows without delay); manual activation is an option.
-
A popover focuses its first tabbable element on open ("generally, focus is initially set on the first focusable element").
-
A tooltip wires itself: its popup is a
tooltipand its trigger'saria-describedbypoints at it; Base UI leaves both to you. -
A menu and a select are non-modal by default, as the APG's menu button and select-only combobox;
modalgives Base UI's behaviour (scroll lock, a blocked outside pointer). -
A select opens its list below the trigger (no
alignItemWithTrigger), keeps DOM focus on the trigger witharia-activedescendant, chooses the highlighted option on Tab, and a printable key on the closed trigger opens the list on the matching option: the APG select-only combobox, where Base UI moves focus into the list and chooses without opening. -
A calendar's Home and End go to the start and end of the week, and its weekday headers stay exposed, as in the APG's date picker grid. Base UI has no calendar: the pickers are non-modal popups like a Popover, where the APG's example is a modal dialog with OK and Cancel, because a choice closes them and there is nothing to confirm.
Base UI where the APG is silent
The APG says nothing of naming, animation states or many edge cases: there, the primitive follows
Base UI. That is why the attributes are data-popup-open, data-starting-style and
data-ending-style, why the wrap-around prop is loopFocus, why the sides are inline-start and
inline-end (plus the physical left and right), and why a popover closed by a press outside
gives focus back to its trigger unless the press landed on something focusable. A combobox
filters its items, takes objects as values, resets its text on Escape and opens on a press on its
input, as Base UI does (the APG allows each of these).
A new difference
Each decided difference is written in the component's spec with its reason, and the conformance suite tests it in all three frameworks.