New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed #33407 -- Fixed .radiolist admin CSS. #15333
Fixed #33407 -- Fixed .radiolist admin CSS. #15333
Conversation
Test project: issue33407.zip You'll need to migrate and create a superuser. |
Hi Carlton -- Will take a look this evening. |
I tested this with another project of mine and found two additional issues: The line above uses two form fields in a single line; the radio field shouldn't wrap. I've changed the line below to use The whitespace looks a bit off but that's not really my area of expertise 😐 – maybe it's fine. |
overflow:visible; | ||
display: inline-block; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There may be specific reasons why introducing overflow
and inline-block
here make sense, but fwiw prior to moving to <div>
they were float: left
instead, in case that helps as a target for "how things were"
Moving to <div> > <div>
also looks to have erased the following rules from being applied, which may have an effect in terms of spacing (ignoring any that might be set at responsive breakpoints!):
ul > li {
...
padding: 1px 0;
}
li, dt, dd {
font-size: 13px;
line-height: 20px;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the reviews all!
- The
overflow
wasn't needed in the end. I'd put it there to make thediv
take up it's layout space around the floatedlabel
child elements, but settingdisplay
achieves that. Nice. 👍 - Good catch on the
.aligned
vs.inline
div
inline-block
Matthias and Keryn.
That get's it close™.
Then there's the small margin/padding adjustments, which I added to get it as close as I could to the 3.2 output.
- It may be that small spacing differences are allowed.
- I'm not yet sure what to make of your last comment @kezabelle ref the inherited rules from
ul
andli
elements. (Fixed #33407 -- Fixed .radiolist admin CSS. #15333 (comment)) We have a bit of time to think about that.
So, prior to 5942ab5 (i.e. at a5cb1ef) when the radiolist was Those values ( Now, I'm not saying adding those values is necessarily correct, because the rest of the CSS cascade may have been adjusted since, such that introducing them is a net-negative (Blarg, CSS!). But if those account for any of the whitespace issues @matthiask was eyeballing, you can at least know (some of) where to look.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@carltongibson Thanks 👍 I found tiny issues but they are not regressions.
Regression in 5942ab5.
Thanks! 🥳 |
Regression in 5942ab5.
Alternate take to #15283.
This looks like the minimal change to me. Not sure if there aren't more tricky cases.
Simple model:
And then an admin:
Looks pretty close™ in big window, with a small margin difference below coming from the parent element in smaller viewport.
I'll upload a zip of the project to save a cycle. @matthiask — I know you exercise the admin well here, could I ask you to check?