Problem/Motivation
Most tables in the admin UI have width: 100%. This can lead to tables with too much horizontal whitespace, especially if the browser window is very wide. It often happens if a table has a Description column, but most or all rows do not have a description.
The excessive horizontal whitespace causes usability and accessibility problems, especially when using screen magnification.
This issue summary is a copy of an issue in the Claro component because Claro is being deprecated and that issue will move to the contrib project. #3574972: Admin tables can have too much horizontal whitespace, creating accessibility problems
Steps to reproduce
- Install Drupal with the Umami demo profile.
- Log in as an admin user.
- Visit
/en/admin/structure/types/manage/article/display.
Note the whitespace in the Description column and the width property in the DevTools inspector:

Proposed resolution
TBD
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | 3618760-15-table-in-default-admin.png | 735.27 KB | kentr |
| #12 | layout-density.png | 19.15 KB | f0ns |
| #5 | Screenshot from 2026-09-02 15-36-16.png | 129.92 KB | hinal05 |
| #5 | Screenshot from 2026-09-02 15-36-32.png | 62.26 KB | hinal05 |
Issue fork drupal-3618760
Show commands
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
mgiffordSome resources on testing this:
- https://accessibility-manual.dwp.gov.uk/best-practice/screen-magnifier-t...
- https://accessibility.huit.harvard.edu/access-technologies/screen-magnif...
It does fall as a best practices though, not a WCAG Success Criteria. It could definitely be improved for screen magnification users.
Comment #3
hinal05 commentedComment #5
hinal05 commentedMR makes default_admin tables size to their content on wide screens (≥61em) instead of always filling 100% width; unchanged below that breakpoint.
Comment #6
mgiffordThat's a nice solution. I don't know if anyone else needs to approve it, but looks good to me, thanks @hinal05
Comment #7
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #8
kentr commentedIt failed code style checks (CSS code style): https://git.drupalcode.org/issue/drupal-3618760/-/jobs/11919430#L408
Those need to be fixed before this can go back to Needs review.
I usually fix the CSS in the same step as building it:
yarn lint:css --fix && yarn build:css.@hinal05, thank you for contributing.
I can't tell from the log if this is what happened, so this is just in case you didn't know. It's generally best to wait for the merge request pipeline to pass before setting the issue Needs review.
The documentation may not be super clear on that, but it's implied in Life cycle of an issue:
If the pipeline fails after you change it to Needs review, it will just get kicked back to Needs work by the bot or a reviewer anyway.
Comment #9
hinal05 commentedComment #10
hinal05 commented@kentr Thanks for pointing that out. I fixed the CSS code style issues by running 'yarn lint:css --fix && yarn build:css' and pushed the changes to the MR.
The fix only reordered the existing rule inside the 'table' block. The actual logic is unchanged.
It should pass the code style checks now, so I’m moving it back to “Needs review.”
Comment #11
mgiffordThis looks like a nice simple patch. Thanks @hinal05
Do we need a UX review? What about screenshots? We have:
Do we need mobile before/after?
Comment #12
f0ns commentedThe new
admin_themehas a setting for layout density:Is this affected by it?
Comment #13
kentr commentedYeah, the IS needs a new Before screenshot. The current one is Claro. I apologize that I didn't catch that before.
And the After screenshot can go in the User interface changes section of the IS.
The related Claro issue (#3574972: Admin tables can have too much horizontal whitespace, creating accessibility problems) was created by @benjifisher and was never tagged for UX review, so my guess is that we don't unless someone disagrees.
Comment #14
f0ns commentedI thought the Claro administration theme was going to be removed in Drupal 12 so is this change still needed/useful?
As far as I know the new admin theme already covers this: see my comment #12.
Comment #15
kentr commented@f0ns,
You're correct that Default Admin has the Layout density setting, but for me that setting doesn't fix this problem.
Screenshot of the table at
/admin/structure/types/manage/article/displaywith the Layout density setting at Narrow, on a fresh pull ofmain:I'm not sure what that Narrow setting is supposed to do. If it's supposed to cover this, to me it's still a problem that:
A site admin shouldn't be able to override individual UX / accessibility preferences.
I view the current behavior as less-accessible-by-default.
I'm adding this screenshot to the IS to replace the Claro screenshot. Still needs an "after" screenshot in the User interface changes section and an updated proposed resolution.
Comment #16
kentr commentedForgot to say:
The problem in this issue was also there when using the Compact setting for Layout density.
Comment #17
kentr commentedIt occurred to me:
Why is there a Description column in that table to begin with, if it's empty for every row?
I doubt that removing the column will fix the whitespace if the table still has
width: 100%, but still... It seems like it just adds noise / cognitive burden.