This is the output from Fangs (a screen reader emulator) looking at the user filter list:
Show only users whereList of one itembulletDefinition list of one itemequalsRadio buttonNot checked roleRadio buttonNot checked permissionRadio buttonNot checked status isequalsCombo box administratorCombo box administer blocksCombo box activeList endFilterbuttonList end Update optionsCombo box Unblock the selected usersUpdatebutton
As with the find content filter patch there are ways to make this both more accessible and much more usable. So for consistency & clarity it would be good to migrate these changes into the user module as well:
1. Instead of the inactive filters showing "Where role is administrator" to indicate that you haven't selected anything yet, they now say "Where status is any."
2. Instead of a confusing radio button / combo box pair to select the filters, we now just use combo boxes.
Comment | File | Size | Author |
---|---|---|---|
#12 | 622136-cleanup.patch | 791 bytes | bowersox |
#6 | screen-capture-1.png | 42.81 KB | mgifford |
#5 | Screen shot of the new user filter screen | 31.37 KB | mgifford |
#3 | 622136-v1.patch | 10.94 KB | bowersox |
Comments
Comment #1
bowersox CreditAttribution: bowersox commentedI am willing to take a stab at rolling a first patch to get us started. My approach would be as follows:
It seems like a win-win-win situation: simplifying the markup, getting rid of lots of dead CSS and javascript code, improving usability and accessibility.
Please let me know if you have any concerns with this approach. Otherwise I'll proceed with a first patch to try out.
Comment #2
mgiffordSounds like a brilliant plan! Please proceed.
Comment #3
bowersox CreditAttribution: bowersox commentedIt's ready for review and testing.
This patch does the following:
<dd class="a">
entirely and shorten<dd class="b">
to<dd>
.Things to test:
After you apply the patch you may need to clear caches by saving the Appearance admin form (/admin/appearance) and clearing your browser cache.
See #551034: Find Content filter accessibility for background on why this benefits usability and accessibility, and to see how we've simplified the HTML and CSS similarly.
Comment #4
bowersox CreditAttribution: bowersox commentedtagging for usability review
Comment #5
mgiffordNice patch! It applies easily. Find it much easier to search for users too. Turned out to touch quite a few files, so thanks for doing this.
Looking forward to having this in core!
Comment #6
mgiffordReally want to have a usability review here.
Had a screenshot without anything selected to post up too.
Comment #7
Bojhan CreditAttribution: Bojhan commentedYes, this makes complete sense - after trying it this is RTBC.
@mgifford Thanks for the pointer on twitter.
Comment #8
bowersox CreditAttribution: bowersox commented@Bojhan: Thanks for the review!
Comment #9
webchickThis looks great. Committed to HEAD.
Do we need to now make some more adjustments to the content page filter? iirc we didn't remove those asinine "b" and "a" classes there like we have here, but we really should.
Comment #10
bowersox CreditAttribution: bowersox commented@webchick: I think we're all good. The "a" and "b" classes were removed from the Content admin HTML with #551034. And this patch for the User admin fixed the user HTML and removed the CSS classes.
I've pasted a sample of the content filter HTML below just for a sanity check in case anyone has suggestions for further clean-up here.
Thanks for all the work and support of this!
Comment #11
webchickAh, great. Thanks for checking. :)
Comment #12
bowersox CreditAttribution: bowersox commentedAhah! I found some unused code we can remove. The attached clean-up patch removes multiselect JS. It was only used in node admin and user admin with the radio buttons that are gone now.
This is the code we can remove from misc/form.js:
Comment #13
mgiffordThanks for finding this. It applies nicely. I didn't see any problems with removing it. Thanks for rolling the patch.
Comment #14
mgiffordI'm marking this patch in #12 as RTBC as it isn't needed and it's further cleaning up code that was already committed to core.
Comment #15
webchickYay for less code. :) Committed to HEAD.
Comment #17
drupalvino CreditAttribution: drupalvino commentedHi,
Im using drupal 7. In my case, I need to filter the contents by content type fields in admin>content.
Any idea about this. Is there any contributed module for this.
Plz guide me. Its very urgent.
Comment #18
bowersox CreditAttribution: bowersox commentedHi @drupalvino, Actually this is a closed issue because we made significant improvements to accessibility (and usability) of the User filter as part of Drupal 7.
If you are still having any problems with the User filter on /admin/people in Drupal 7, please report that as a new issue. If you already know how to file a new issue, you can use the issue queue to do that. If you have broader questions or want help in figuring what is wrong and how to solve it, feel free to post to the Accessibility group page: http://groups.drupal.org/accessibility .
-Brandon @bowersox