WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Forms that delete something

for

From: tim.harshbarger
Date: Jan 9, 2024 10:23AM


You want to maintain the focus wherever it seems to make best sense for users.

If the delete button disappears, you want to move focus to whatever other element seems to make sense.
If the delete button is still present, one option might be to ensure focus returns to that delete button or remains on it.

If you display some kind of message about the delete being successful or failing, you definitely want to ensure a person using a screen reader knows about it. If you are maintaining the focus on the delete button or moving it to another interactive element, then it would be a good situation to use a live region to ensure the message is spoken.

That was a very inciteful question to ask!

Thanks!
Tim