Comment

Comment by dbrgn

If accessibility tools remove the focus from the disabled button and focus the document instead when a button is disabled, wouldn't this be a problem of the accessibility tool in the first place?

Even just focussing the parent element would be a much much better idea than focusing the document.

Making a button look disabled without actuall disabling it sounds like a semantically bad idea.

parent dbrgn 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton