Postponed
Project:
Drupal core
Version:
main
Component:
CSS
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Mar 2025 at 15:17 UTC
Updated:
15 Apr 2025 at 22:46 UTC
Jump to comment: Most recent
system/base provides a clearfix utility class.
This class is used in about 20 places in Drupal core, however they are all admin pages.
We should check each page to see whether the clearfix class/CSS rule is actually required, and remove it if it's not.
This may eventually allow us to move clearfix to its own library, or deprecate the class entirely.
Check each page to see whether the clearfix class/CSS rule is actually required, and remove it if it's not.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
utkarsh_kumar_singh commentedI am working on it.
Comment #4
utkarsh_kumar_singh commentedFixed Audit use of the clearfix class.
Comment #5
smustgrave commented@utkarsh_kumar_singh I see you removed it but did you check any of the pages that it was being used? Don't see the audit part anywhere on the ticket and seems we jumped straight to removal. So moving to NW
Comment #6
quietone commentedAdding related.
Comment #7
utkarsh_kumar_singh commentedI am looking into it.
Comment #8
utkarsh_kumar_singh commentedHii @smustgrave, Thank you for the feedback.
Yes, I manually reviewed and tested all the pages where the clearfix class was being used. After thorough testing, I confirmed that the removal does not impact the layout or functionality on any of those pages. Based on this, I proceeded to remove the class from the admin theme as it was no longer needed.
Please let me know if there's any specific page or scenario you'd like me to double-check. I'm happy to revisit and make any necessary adjustments.
Comment #9
catchI think this needs to be postponed on #3328118: Discuss removing 'clearfix' class from Claro which is already dealing with the Claro usages.