Closed yuheiy closed 3 years ago
@yuheiy If any element is controlling some other element that means there is an event to occur, whether it is to display a modal or a read more part. So cursor: pointer
is needed because that element is linked to something. That's the default for any clickable thing.
I agree. This should not be in the project. Fortunately for me, aria-controls
doesn’t actually work in any reliable way and is presently disappearing.
This has been removed in https://github.com/csstools/sanitize.css/commit/678ccd2fe3c92b47dc81537502825dce15702ed6
Thanks, @yuheiy!
The
[aria-controls]
elements do not necessarily have to be button-like. For example, a text field may control another element, such as a combo box.https://www.w3.org/TR/wai-aria-practices-1.2/#combobox
And since many buttons do not have the
aria-controls
attribute, it seems unnatural that only the[aria-controls]
element hascursor: pointer
set.