-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
lib/form-layout: Add support for widgets nested in splits #11154
Conversation
Ideally, the widget would be a direct child of the grid element. That's what splits are designed for. However, in looking at the code, it would be difficult to "fix" the HTML to work as intended, so I basically adjusted the CSS to account for cases like this, as it'll probably show up again in the future too (and isn't really "wrong"). |
Oh, this will probably clash with b384c4b, which hasn't been merged yet. That specific commit is similar and we can add this same logic to b384c4b#diff-065d8dbbc10bd4f648805392b2b935f6R137 (line 137) |
c5d01ac
to
274d21c
Compare
Merged the two commits into one. |
Oh, hmm. I should investigate this. 😉 |
274d21c
to
d618a6e
Compare
Fixed checkboxes and radios in various scenarios and added list-group-item fixes here now too. (Network page among others had odd stuff going on. I had some local fixes in another PR, but it really belongs here.) |
I need to do further testing tomorrow and perhaps some little fixups, but wanted to come to a stopping point today with something that should (mostly?) work as expected. |
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.
Looks good to me!
The changes here and in #11035 don't work well together. I'll have to investigate further to make everything work. It might be local to that PR, or perhaps I'm making wrong assumptions somewhere. 😒 |
Sorry, this fell through the cracks. This needs to be rebased. |
That's OK: I'm not quite done with it either, if I remember correctly. I got pulled over to other PRs, interacting with other people on the other issues was more important than this fixup PR. I'm also pretty certain I did some commit collisions with myself. 😉 |
d618a6e
to
93e1e7d
Compare
Rebased, as to not let this get too stale; need to check (and fix) it everywhere still. |
93e1e7d
to
e03a283
Compare
I really need to find the time to finish this and de-conflict-ify it (again), then fix it up again. We still have a few bugs in Cockpit that are addressed in this PR. |
e03a283
to
4b04b73
Compare
Needs to rebase to master since #12367 changed tests names |
I think I basically implemented this either during the PF4-style refresh or shortly before. |
Fix alignment as mentioned in #11083 by applying special widget offseting & min-height to widgets also directly enclosed within
ct-form-layout-split
, which should behave now similarly to top-level children.