Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Warn about button.disabled#294

Closed
zacechola wants to merge 1 commit intotwbs:masterfrom
zacechola:btn_disabled
Closed

Warn about button.disabled#294
zacechola wants to merge 1 commit intotwbs:masterfrom
zacechola:btn_disabled

Conversation

@zacechola
Copy link
Copy Markdown
Collaborator

Fixes #293

W006 causes some conflicts here in the unit tests because on-disabled-elems.html specifically puts .disabled on button elements, so they also now report this new warning about .disabled on a <button>.

In nodeunit, I can just pass ['W006'] and ['W016'] (the new warning for this one) as disabledIds in each respective unit test, but disabledIds weren't set up for qunit, so I added data-disabled as an attribute.

This isn't a case that comes up often, so maybe there's a better approach here. Maybe this is overkill and we simply remove the two lines from on-disabled-elems.html that use buttons. Thoughts?

cc @cvrebert @hnrch02 for review.

@cvrebert cvrebert added this to the v0.14.0 milestone Nov 16, 2015
zacechola pushed a commit that referenced this pull request Nov 16, 2015
@zacechola zacechola closed this in 1325279 Nov 16, 2015
@cvrebert
Copy link
Copy Markdown
Collaborator

Again, sorry about the delay.

@cvrebert
Copy link
Copy Markdown
Collaborator

Apparently I neglected to add a wiki page for this. Wrote one just now: https://github.com/twbs/bootlint/wiki/W016
@patrickhlauke Would appreciate any feedback you have on the wiki article since it touches on widgets-which-would-probably-need-ARIA a bit.

@patrickhlauke
Copy link
Copy Markdown
Member

@cvrebert the wiki entry LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants