Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
See: #1995272: [Meta] Refactor module CSS files inline with our CSS standards
Remaining tasks
Review the current CSS — What to look for when reviewing CSS
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#12 | refactor-module-page-css-2408505-12.patch | 16.62 KB | crazyrohila |
#9 | interdiff-7-9.txt | 1.41 KB | crazyrohila |
#9 | refactor-module-page-css-2408505-9.patch | 16.8 KB | crazyrohila |
#9 | Screenshot from 2015 03 26 23 03 16.png | 200.38 KB | crazyrohila |
#8 | 2408505-7-after.png | 48.92 KB | idebr |
Comments
Comment #1
LewisNymanComment #2
LewisNymanComment #3
crazyrohila CreditAttribution: crazyrohila commentedAdding initial patch for feedback.
Comment #4
idebr CreditAttribution: idebr commented@crazyrohila Thanks for working on this!
The comment and class name don't match
Let's use .list-item-group__label instead
The checkbox is a modifier of the list-item__column, so you could write list-item__column--checkbox instead
Following the previous logic, this would be .list-item__column--title
And .list-item__column--description
Let's leave out this comment as adding an attribute to the renderable array is very common.
There's an unexpected space after $form
Let's leave out this comment as well, adding an attribute to a renderable array is very common.
The original class .checkbox can be removed, as it is no longer used.
These styling is removed but never reapplied. This changes the module overview on the 'Extend' page quite a bit.
Comment #5
crazyrohila CreditAttribution: crazyrohila commented@idebr, Thanks for review.
9.
.checkbox
was used to applytext-align: center
that was being applied bysystem.theme.css
(td.checkbox
). I have removed checkbox class and appliedtext-align: center
tolist-item__column--checkbox
.10. Selector changed to `.list-item`.
1-8.
Updated code.
Comment #6
idebr CreditAttribution: idebr commented@crazyrohila Thanks for working on this issue! I did a manual test to check for visual regressions as well as a code review:
There is a space after $form that can be removed.
This selector was also used for the label 'Search' above the module filter on the 'Extend' page, so now this label has been reduced in size. Let's add a new selector for this label to make sure we don't introduce a usability regression.
Adding an attribute is very common, so I don't think a comment is necessary here. Let's remove it from the patch.
Are the classes module-name and table-filter-text-source still needed? If these are only used for javascript, the class names should be prefixes with
.js-
according to the css coding standards.The selector
.system-modules .requirements
in system.admin.css should be updated to the new selector.Is the class 'expand' necessary here? If it is only used for javascript, the class should be prefixed with
.js-
per the CSS coding standards.Comment #7
crazyrohila CreditAttribution: crazyrohila commented1,2,3. Done
4. Yes, class was being used by js, so added
.js-
to class name.5. This is already done in last patch.
6. Class was not in use, removed.
Class names are generic now and being used by other pages (eg. translation-update, modules uninstall), I think we should change file name too. current file name is
modules-page.css
. I am not sure if breaking this file into component files can be covered in this issue or we should create new one.Comment #8
idebr CreditAttribution: idebr commented@crazyrohila Thanks, this is looking great! The module page is done, but I found one regression on the Locale translation status page (/admin/reports/translations) with manual testing:
The locale translation status (/admin/reports/translations) has no .list-item on its rows, so this styling is never applied:
Comment #9
crazyrohila CreditAttribution: crazyrohila commentedAdded
list-item
class to rows of table.I noticed some visual problems with translation table, when we have some data there. but I think that is out of scope of this issue. attached screenshots.
Comment #10
crazyrohila CreditAttribution: crazyrohila commentedScreenshot...
Comment #12
crazyrohila CreditAttribution: crazyrohila commentedupdated for latest HEAD.
Comment #14
crazyrohila CreditAttribution: crazyrohila commentedI have added languages, but all are showing "updated" or "No update found". So I am not able to check this manually and not sure why this testInterface() Test is failing.
Can anyone point somethings here?