Needs work
Project:
Drupal core
Version:
main
Component:
Admin theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2026 at 14:07 UTC
Updated:
15 Jul 2026 at 23:02 UTC
Jump to comment: Most recent
The Admin theme was derived from Gin, which was based on Claro, which was forked from Seven, which was developed in 2010 or something. This leads to a lot of cruft around the CSS.
As part of this, we're going to implement box-sizing: border-box on the root element, and psuedo-elements. This is best practice in the year of our Lord 2026.
There should be no visual changes, and we will confirm this with a visual regression checker tool.
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 #5
mukeysh commentedAdded border-boxing as global styles. Please review.
Comment #6
mukeysh commentedComment #7
mherchel@mukeysh this isn't going to be as simple as adding the CSS properties. Changing the box model is going to result in visual regressions that you'll need to sus out, and fix. In addition, you'll need to find elements where border-box is set and remove that rule.
To help sus out the regressions, you can use https://github.com/mherchel/ddev-drupal-admin-vrt
Comment #8
mukeysh commentedthank you for clarification
Comment #9
mukeysh commentedThanks for the feedback. I reviewed the relevant component styles to identify where box-sizing: border-box was being applied.
I checked the following files:
Among these, I found box-sizing: border-box rules in a few components. I removed those rules where appropriate, updated the related styles to account for the box model change, and tested the affected components to verify that there were no visual regressions.
The changes are currently in:
Please review this if this is fine i will continue with the rest.
Comment #10
mherchelLooking right. But be sure to run the visual regression tests. There should be no visual changes.