Guides
Accessibility
Keyboard focus, labels, reduced motion, and contrast checks for DavinciUI components.
Accessibility is part of the component source, not an add-on. The defaults aim for keyboard reachability, visible focus, and motion that can be turned off.
Keyboard support
Focus orderInteractive elements follow DOM order; avoid positive tabindex values.
Visible focusUse focus-visible rings instead of removing outlines.
EscapeDialogs and popovers close on Escape and restore focus to the trigger.
Reduced motion
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}Test with a keyboard
Tab through every example. If you cannot reach a control or see where focus is, fix it before shipping.
Labels and contrast
Label every input
Use a visible <label> or aria-label; placeholders are not labels.
Check contrast
Body text should meet 4.5:1; large text and UI borders need 3:1.
Announce errors
Connect messages with aria-describedby and set aria-invalid.

