Grokking the Modern Frontend System Design Interview
0% completed
Design an Accessible Modal and Dropdown
When a dialog opens over a page, where is the keyboard focus, and where does it go when the dialog closes? A dialog built without care can get both halves wrong. Focus stays on the button behind the dialog, Tab moves through links the user cannot see, and closing the dialog drops focus at the top of the page.
A dropdown raises a second set of questions. It must open next to its button, stay inside the window when the button is near an edge, and show above any container that cuts off its content.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%