I noticed there was a todo for this when digging around modernizr.admin.inc. "TODO: $list .= $test['desc'];"
It seemed like a proper definition list, but a table may make more sense if more info is added in the future. Also, having this page's callback return a render array instead of a string would make it more flexible in the future.
I'll attach a patch in a bit.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | modernizr-add-descriptions-1478038-4.patch | 4.8 KB | pixelwhip |
| #1 | modernizr-add-descriptions-1478038-1.patch | 5.4 KB | pixelwhip |
Comments
Comment #1
pixelwhip commentedI went ahead and converted the page to a render array. I also made use of the .button style on the download link and moved it to the top of the page as it seems to be the focus. I fluffed the description a bit too, to hopefully make its purpose a bit more clear.
As this was written previously, I believe there would have been instances in which the test cases were not properly grouped if they weren't listed by module in the '$test' variable. This is probably an edge case, but this patch should avoid those issues.
The definition list could use some styling love in the future, but it at least has some semantic structure for now.
Comment #2
pixelwhip commentedComment #3
ruplHey pixelwhip, I think your suggestions are great, however, the patch doesn't apply to the latest dev branch.
I see extra plus and minus signs here. Could this be the issue?
A few more here.. This seems to be the same typo you fixed in #1476980: Typo on Modernizr Rebuild page, perhaps you need to get the latest dev before patching?
Comment #4
pixelwhip commentedThis patch should be much cleaner.
Comment #5
ruplCommitted to 7.x-3.x dev. Thanks!