Loading...
Loading...
Browse 3 real-world technical and behavioral interview questions about Aria. Review scenarios, edge cases, and architectural best practices.
The dialog was built as a styled div, so nothing marks the rest of the page inert. Focus was never moved in, never constrained, never restored on close, and Escape was never wired. A correct dialog moves focus in, keeps it in, restores it, marks background inert and is labelled - which native dialog with showModal gives you almost for free.
Toast notifications are announced to screen readers only when the message is inserted into an existing live region with the right politeness and without hiding it from the accessibility tree.
An accessible custom interactive component should start from the nearest native element, preserve keyboard and focus behavior, and use ARIA only for state that HTML cannot express.