Introduced by #639368: Contrast between error and link colour causes death to eyeballs ...
To reproduce:
- Install http://ftp.drupal.org/files/projects/update_test_module-7.x-1.0.tar.gz on your site (which you can do via the Update manager if you want!) ;)
- Either enable it at admin/modules or configure Update manager to check status on disabled modules at admin/reports/updates/settings
- Visit the available updates report at admin/reports/updates
You'll see something like this:

WTF is that? ;)
A) This whole box is a tr.error. It should be red.
B) The recommended version line's background is a lighter red since it's trying to highlight the line you care about, but without the box itself being red, it's just totally weird and misplaced as-is.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 934148_available_update_colors_1.patch | 1.53 KB | markabur |
| #6 | available-updates-seven-after.png | 47.4 KB | markabur |
| #6 | available-updates-bartik-after.png | 47.32 KB | markabur |
| #4 | available-updates-seven-before-639368.png | 44.72 KB | markabur |
| #4 | available-updates-bartik.png | 42.84 KB | markabur |
Comments
Comment #1
dwwP.s. this is specific to seven. It looks "normal" in Bartik, Garland, et al...
Comment #2
markabur commentedSubscribe
Comment #4
markabur commentedHere are some screenshots for reference. Should Seven go back to the way it was before, or should it have a stripe like Stark and Garland do?
Comment #5
dwwIMHO, only Stark and Garland get this right. If everything is stripped like Bartik, it's not as obvious what you're supposed to install. If nothing is stripped like Seven, you have the same problem for the opposite reason. There's no "call to action". Granted, this whole page needs a lot of UX love (I guess that's going to have to wait to D8).
Anyway, the biggest bug here is that Seven doesn't use red for missing security updates on your site. That was probably by design in general for tr.error. But, I think the available updates page is a special case and we should restore the red. If the maintainers of Seven disagree, then we should at least remove the pink stripe.
I suppose the Bartik excess stripes should happen in a separate issue, huh?
Comment #6
markabur commentedThe Bartik thing is sort of a separate issue but we're aiming for the same result so I guess we should just take care of it here.
Problem: tr.error background color incorrect in Seven. This was caused by a block of CSS that was added to Seven explicitly to override update.css, but it wasn't overriding anything useful that I could see, so I deleted it. Now Seven inherits the table.update styles from update.css just like Garland, Stark, and Bartik do.
Problem: After removing the above CSS, Stark still applies its default table border to the left and right. This appeared to be unintentional, so I added the following higher-specificity rules to update.css:
Problem: Bartik defines a gray background color for any tr in any table, which is showing up here on the inner table. Solved this by specifying "background: none" in a higher-specificity rule in update.css:
Now Bartik and Seven use the same colors and borders here as the other themes do, and there's less chance that other themes will inadvertently affect this table.
Comment #7
mgiffordsubscribe
Comment #8
dwwI'm totally happy with #6.
- Removes unnecessary, ineffective (and visually broken) CSS from seven.
- Makes it so there's one place in core (update.css) to basically control the functional elements of this page, instead of having that sprinkled across the CSS from the different core themes.
I looked at my available updates report with all core themes as admin, and they're now consistent and functionally working as intended.
This is a CSS-only patch, and our test bot can't have tests for if the CSS "looks right", so this has been manually tested by a human (me) and it's great. No point waiting for the bot to tell us (which it inevitably will) that the core tests still pass.
RTBC!
Thanks,
-Derek
Comment #9
dries commentedCommitted to CVS HEAD. Thanks.