WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: aria-controls breaks CSS?

for

From: Patrick H. Lauke
Date: Apr 5, 2019 3:59PM


On 05/04/2019 21:28, David Engebretson Jr. wrote:
[...]
> If I remove aria-controls it breaks our CSS. Why would aria-controls alter
> the CSS?

Probably because your CSS is taking advantage of the aria-controls
attribute in some form of attribute selector, a la

button[aria-controls] { ... }

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke