Closed (fixed)
Project:
Token
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Feb 2011 at 12:52 UTC
Updated:
1 Jun 2011 at 18:11 UTC
Jump to comment: Most recent file
If you have JS on, then the token tree with its collapsible groups is quite nice.
Without JS, though, the table is quite overwhelming (for instance with '#global_types' => TRUE) and it is not immediately obvious that some rows are only headings for the following ones.
The attached patch adds a 'token-group-nojs' class to those rows, which makes them bold, and then removes that class via JS, so that it doesn't make the nice collapsible groups scream at you.
I tested this with #922022: The token tree UI is not accessible to keyboard only users applied also, and it doesn't seem to conflict, although this would need a reroll if that got in.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 1067268-token-groups-nojs.patch | 250 bytes | tstoeckler |
| #5 | 1067268-bold-token-groups-no-js.patch | 672 bytes | dave reid |
| #4 | token_bold_group_titles.patch | 1.53 KB | tstoeckler |
| token_bold_group_titles.patch | 1.53 KB | tstoeckler |
Comments
Comment #2
tstoecklertoken_bold_group_titles.patch queued for re-testing.
Comment #3
tstoecklerAlso assigning to me.
Comment #4
tstoecklerRe-uploading for the testbot.
Comment #5
dave reidCan't we do something like this?
Comment #6
jacineHey, saw this on twitter, and figured I'd chime in. You don't need to add a "js" class and using
:not()isn't necessary in this case. You've already got the "js" class that Drupal adds on the<html>tag for free. You can just do something like::)
Comment #7
tstoecklerThanks, Jacine, for the hint!
That's why I love Drupal ... :)
Rolled a patch and tried it out. It works beautifully.
Comment #8
dave reidWorked great for me too, so committed to 7.x-1.x and 6.x-1.x.
http://drupalcode.org/project/token.git/commit/edd4ee5
http://drupalcode.org/project/token.git/commit/755da68
Comment #9
jacineCool, glad I could help. ;)