- Issue created by @jennypanighetti
Thanks, @jennypanighetti, I created a new patch to address the issue.
- Merge request !4382Issue #3374464: Claro CSS for dropbutton items adds large gap of white space โ (Closed) created by vpa24
- ๐บ๐ธUnited States jennypanighetti
That works great, thank you so much!
- Status changed to Fixed
over 1 year ago 4:53pm 17 July 2023 - Status changed to Needs review
over 1 year ago 1:27pm 18 July 2023 - last update
over 1 year ago Patch Failed to Apply - ๐ฉ๐ชGermany luenemann Sรผdbaden, Germany
This isn't fixed / committed.
Setting to needs review to run tests.
- Status changed to Needs work
over 1 year ago 1:51pm 18 July 2023 - ๐บ๐ธUnited States smustgrave
Is this replicated in core without a contrib module?
MR should be updated for 11.x as it will have to land there first to be backported.
- last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Custom Commands Failed - ๐ฉ๐ชGermany luenemann Sรผdbaden, Germany
IS update for Steps to reproduce.
- last update
over 1 year ago 29,822 pass - ๐ฉ๐ชGermany luenemann Sรผdbaden, Germany
After screenshot:
But this was changed in #3168326: Dropbuttons in table cells are potentially unusable if it includes options with long text length. โ .
- Status changed to Needs review
over 1 year ago 9:13am 19 July 2023 - ๐ฉ๐ชGermany luenemann Sรผdbaden, Germany
I'm unsure if this is a won't fix or a regression on #3168326: Dropbuttons in table cells are potentially unusable if it includes options with long text length. โ .
Maybe โจ Add new Splitbutton render element to eventually replace Dropbutton Needs work can solve this.
- Status changed to RTBC
over 1 year ago 4:28pm 24 July 2023 - ๐บ๐ธUnited States smustgrave
Can confirm the issue with the hook suggested in IS.
The MR 4382 did solve the issue.Think it would be good to get this in now as the other may take a bit longer as it's a bigger fix.
- last update
over 1 year ago 29,877 pass - Status changed to Needs work
over 1 year ago 6:27pm 24 July 2023 - ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
This reverts a UI fixm in #3168326: Dropbuttons in table cells are potentially unusable if it includes options with long text length. โ that prevented dropbutton items from being available to users.
.dropbutton-wrapper:not(.open) .dropbutton__item:first-of-type ~ .dropbutton__item { visibility: hidden; display: none; }
It might be possible to get it working with setting
.dropbutton-wrapper:not(.open) .dropbutton__item:first-of-type ~ .dropbutton__item
to a very tiny height. This means they would still occupy the width needed to keep the fix intact, but it won't consume that vertical space when the button is closed. Hello @bnjmnm, I think we can't use both
visibility: hidden;
anddisplay: none;
together doesn't make sense, as they serve similar purposes of hiding elements but in different ways.When you use
visibility: hidden;
the element becomes invisible, but it still occupies space on the page. On the other hand, when you usedisplay: none;
the element is completely removed from the layout.- ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
Re #13
Hello @bnjmnm, I think we can't use both visibility: hidden; and display: none; together, and it doesn't make sense, as they serve similar purposes of hiding elements but in different ways.
When you use visibility: hidden; the element becomes invisible, but it still occupies space on the page. On the other hand, when you use display: none; the element is completely removed from the layout.
I see you mentioning my name as if you're responding to my suggestion in #12, the content of your response has nothing to do with my recommendation.
To reiterate, I'm saying don't change the visibility rules at all. Instead, set the height of collapsed splitbutton items to a very small height. That way they consume the horizontal space needed to retain the fix from #3168326: Dropbuttons in table cells are potentially unusable if it includes options with long text length. โ but occupy a very small amount of vertical space thus fixing the problem reported.
- ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
- First commit to issue fork.
Hi Ben I added the height to the required element and it seems to work fine.Attaching the screenshots for the same
Before:-
After:-
- Status changed to Needs review
7 months ago 8:29am 9 May 2024 - Status changed to RTBC
7 months ago 2:28pm 9 May 2024 - ๐บ๐ธUnited States smustgrave
Cleaned up the issue summary some using the screenshots posted by @Utkarsh_33.
Solution seems good and matches the recommendation by @bnjmnm in #12
- Status changed to Needs work
7 months ago 11:41am 10 May 2024 - ๐ซ๐ทFrance nod_ Lille
can we add a comment as to why we need to have the height changed in the CSS? I'm sure i'll wonder why it's there in a few months.
- Status changed to Needs review
7 months ago 6:41am 13 May 2024 - Status changed to RTBC
7 months ago 12:39pm 13 May 2024 - Status changed to Fixed
7 months ago 1:39pm 21 May 2024 - ๐ซ๐ทFrance nod_ Lille
Committed and pushed bc18f36525 to 11.x and f0fefd6153 to 11.0.x and 7ca75f443f to 10.4.x and c86c46871a to 10.3.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.