Fixed
Project:
Drupal core
Version:
11.x-dev
Component:
Admin theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Aug 2026 at 14:36 UTC
Updated:
15 Sep 2026 at 15:19 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
mgiffordDisabled controls are legitimate HTML, and poorly styled disabled controls will remain a Drupal accessibility problem.
Comment #3
mgiffordI'm not sure this is the best approach, but worth putting it out for consideration.
Comment #4
mgiffordThe red line on black probably doesn't meet color contrast....
Comment #5
mherchelIt's also not the right size 🤷♂️
Comment #6
mgiffordI failed to create a MR again, so just uploaded this patch. I may have luck with GitLab tomorrow.
Comment #8
gareth.pooleStill unable to create a MR from the drupal-3617875 fork.
I added a similar diagonal strike as above using the border color (with linear gradient), this may be too subtle though.
Comment #10
mherchelI took a stab at it. I changed around the brightness of the backgrounds and borders. I also actually brightened up the border for the enabled text input, to differentiate it a bit more.
Before
After
Comment #11
mherchelHere are some gifs so the changes are easily apparent.
Comment #12
mherchelNote I updated https://www.drupal.org/project/form_style to have lots of disabled elements, so you can easily test this yourself
Comment #13
gareth.pooleComment #15
mherchelDiscussed with @mgifford and @jurgenhaas earlier today.
We went over the pros and cons of different branches and settled on the work that I did. We decided that the strike-through of the checkbox is not a normal pattern, so we're not doing that. We tried out other variations of gray, and even white, and decided that the current colors are sufficient and we're not going to do much better.
There was were minor issues: 1) The disabled checkboxes still had a hover state, and 2) the toggle checkbox's label didn't have the disabled color.
These have been fixed, and this should be good to go.
Comment #16
mgiffordThis is an improvement. Thanks! I do think that there will be better patterns for enabled/disabled form elements at some point, but until there is some emerging consensus, I think this is a step forward. Disabled elements should be visible, should be clearly be different than enabled elements.
Adrian's point here is good https://adrianroselli.com/2024/02/dont-disable-form-controls.html
Don't disable form elements. But there are times when it is needed.
A possible follow-up from https://uxknowledgebase.com/the-disabled-state-in-ui-design-8c091d72868 is:
More reading on disabled elements for those who are keen:
Comment #19
catchCommitted/pushed to main and 11.x, thanks!
Comment #21
catchComment #22
mherchelComment #24
mherchel