The Needs Review Queue Bot → tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- @gauravvv opened merge request.
- Status changed to Needs review
over 1 year ago 11:32am 27 February 2023 - Status changed to Needs work
over 1 year ago 3:58pm 1 March 2023 - 🇺🇸United States smustgrave
More nesting can be done for
.dropbutton__toggle
.js.no-toucheventslarge file but a lot of those can be folded into each other.
- Assigned to starshaped
- First commit to issue fork.
- @andy-blum opened merge request.
- Status changed to Needs review
over 1 year ago 2:32pm 9 March 2023 - 🇺🇸United States andy-blum Ohio, USA
Opened a new MR using @Gauravvvv and @starshaped's cherrypicked commits from !3547 to untangle a botched rebase. Going forward, as long as this issue doesn't get bumped to 10.2.x, contributors should be fine to merge origin/10.1.x back into this MR branch.
- Status changed to RTBC
over 1 year ago 3:58pm 9 March 2023 - Status changed to Needs work
over 1 year ago 4:01pm 9 March 2023 - 🇺🇸United States starshaped
@smustgrave, I actually wasn't quite done with my refactoring and still need to fix a few issues, so I'm moving this back to needs work. Thanks @andy-blum for fixing my mess, I'll work off that new MR!
- 🇺🇸United States andy-blum Ohio, USA
Also #17 is not in any way a review - just getting things back on track.
- 🇮🇳India Santosh_Verma
Hi @starshaped
In the last commit (7a272525 - Cleaned up CSS) you removed logical property and wrote normal css in place of that.
But I think this is wrong approach as in the Proposed resolution they asked to Use CSS Logical Properties where appropriate. :) - Issue was unassigned.
- 🇺🇸United States starshaped
@Santosh_Verma Yep, this was on purpose because the styles would not display correctly in RTL mode when using logical properties. Since using logical properties here caused a regression in the layout, I used non-logical properties instead.
Also, unassigning myself to this issue as I haven't had time to work on it--anyone, feel free to pick this one up!
- last update
over 1 year ago 29,300 pass - Status changed to Needs review
over 1 year ago 3:28am 21 April 2023 - Status changed to Needs work
over 1 year ago 11:19pm 22 April 2023 - 🇺🇸United States smustgrave
This has changed a few times. Could we get before/after screenshots please. Also screenshots of rtl please.
Thanks.
- 🇮🇳India Santosh_Verma
I have tested the #MR3615
there is error in the patch
Checking patch core/themes/claro/css/components/dropbutton.pcss.css... error: while searching for: overflow: visible; margin: 0; list-style: none; } [dir="rtl"] .dropbutton { margin: 0; } .js .dropbutton { min-width: 6rem; /* Help mitigate long dropbutton text from obscuring other dropbuttons. */ height: var(--dropbutton-toggle-size); } /* Variants. */ .js.no-touchevents .dropbutton--small { height: var(--dropbutton-small-toggle-size); } .js.no-touchevents .dropbutton--extrasmall { height: var(--dropbutton-extrasmall-toggle-size); } /** * First dropbutton list item. */ .js .dropbutton--multiple .dropbutton__item:first-of-type { margin-right: calc(var(--dropbutton-toggle-size) + var(--dropbutton-toggle-size-spacing)); /* LTR */ } [dir="rtl"].js .dropbutton--multiple .dropbutton__item:first-of-type { margin-right: 0; margin-left: calc(var(--dropbutton-toggle-size) + var(--dropbutton-toggle-size-spacing)); } /* First dropbutton list item variants */ .js.no-touchevents .dropbutton--multiple.dropbutton--small .dropbutton__item:first-of-type { margin-right: calc(var(--dropbutton-small-toggle-size) + var(--dropbutton-toggle-size-spacing)); /* LTR */ } [dir="rtl"].js.no-touchevents .dropbutton--multiple.dropbutton--small .dropbutton__item:first-of-type { margin-right: 0; margin-left: calc(var(--dropbutton-small-toggle-size) + var(--dropbutton-toggle-size-spacing)); } .js.no-touchevents .dropbutton--multiple.dropbutton--extrasmall .dropbutton__item:first-of-type { margin-right: calc(var(--dropbutton-extrasmall-toggle-size) + var(--dropbutton-toggle-size-spacing)); /* LTR */ } [dir="rtl"].js.no-touchevents .dropbutton--multiple.dropbutton--extrasmall .dropbutton__item:first-of-type { margin-right: 0; margin-left: calc(var(--dropbutton-extrasmall-toggle-size) + var(--dropbutton-toggle-size-spacing)); } /**
error: patch failed: core/themes/claro/css/components/dropbutton.pcss.css:62
error: core/themes/claro/css/components/dropbutton.pcss.css: patch does not apply - Status changed to Needs review
over 1 year ago 11:29am 12 August 2023 - last update
over 1 year ago 29,958 pass - Status changed to RTBC
over 1 year ago 12:55pm 14 August 2023 - last update
over 1 year ago 29,959 pass 31:45 27:01 Running- last update
about 1 year ago 30,047 pass - last update
about 1 year ago 30,051 pass - last update
about 1 year ago 30,056 pass - last update
about 1 year ago 30,058 pass - last update
about 1 year ago 30,060 pass - last update
about 1 year ago 30,060 pass - last update
about 1 year ago 30,100 pass - last update
about 1 year ago 30,135 pass - last update
about 1 year ago 30,135 pass - last update
about 1 year ago 30,136 pass - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Waiting for branch to pass - last update
about 1 year ago 30,146 pass - last update
about 1 year ago 30,148 pass - last update
about 1 year ago 30,154 pass - last update
about 1 year ago 30,161 pass - last update
about 1 year ago 30,161 pass - last update
about 1 year ago 30,168 pass - last update
about 1 year ago 30,168 pass - last update
about 1 year ago 30,205 pass - last update
about 1 year ago 30,363 pass - last update
about 1 year ago 30,365 pass - last update
about 1 year ago 30,360 pass 16:46 48:49 Running- last update
about 1 year ago 30,379 pass - last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,382 pass - last update
about 1 year ago 30,392 pass - last update
about 1 year ago 30,397 pass - last update
about 1 year ago 30,397 pass - last update
about 1 year ago 30,413 pass - last update
about 1 year ago Patch Failed to Apply - Status changed to Needs work
about 1 year ago 2:55am 20 October 2023 - Status changed to Needs review
about 1 year ago 6:10am 20 October 2023 - last update
about 1 year ago Patch Failed to Apply - last update
about 1 year ago 30,420 pass - 🇷🇺Russia kostyashupenko Omsk
Can't apply patch from #30, so did reroll again of the patch from #27 against 11.x
- Status changed to Needs work
about 1 year ago 7:58am 20 October 2023 - 🇫🇷France nod_ Lille
+++ b/core/themes/claro/css/components/dropbutton.pcss.css @@ -250,63 +236,63 @@ + & > *:active {
The nesting is not right here. Resulting selector is
.dropbutton__item:first-of-type > * > *:active
Where it should be.dropbutton__item:first-of-type > *:active {
- Status changed to Needs review
about 1 year ago 8:15am 20 October 2023 - last update
about 1 year ago 30,420 pass - Status changed to Needs work
about 1 year ago 8:29am 20 October 2023 - 🇫🇷France nod_ Lille
There are a few other selectors that needs to be fixed, check out the diff on the generated css file, anything with
> * > *
looks suspicious and probably needs to be fixed. - Status changed to Needs review
about 1 year ago 3:21am 21 October 2023 - last update
about 1 year ago 30,425 pass - 🇮🇳India gauravvvv Delhi, India
Addressed #35, also fixed some logical properties. Attached interdiff for same.
- Status changed to Needs work
about 1 year ago 2:53pm 23 October 2023 - 🇺🇸United States smustgrave
For the screenshots but looking at the patch
border: 0.125rem solid; border-width: 0.125rem 0.125rem 0 0;
Is this not overriding itself?
- Status changed to Needs review
about 1 year ago 10:37am 24 October 2023 - last update
about 1 year ago 30,434 pass - Status changed to RTBC
about 1 year ago 3:59pm 24 October 2023 - last update
about 1 year ago 30,438 pass - last update
about 1 year ago 30,456 pass - 🇫🇷France nod_ Lille
+++ b/core/themes/claro/css/components/dropbutton.css @@ -324,7 +309,7 @@ -.dropbutton__item:first-of-type > *:active { +.dropbutton__item:first-of-type:active {
Is this change intended?
- 🇮🇳India gauravvvv Delhi, India
No, this is not intended. I have fixed it. I have attached the patch and interdiff for same.
- last update
about 1 year ago Composer error. Unable to continue. - last update
about 1 year ago 30,472 pass - last update
about 1 year ago 30,470 pass, 1 fail - last update
about 1 year ago 30,483 pass - last update
about 1 year ago 30,486 pass - last update
about 1 year ago 30,486 pass - last update
about 1 year ago 30,493 pass - last update
about 1 year ago 30,512 pass - last update
about 1 year ago 30,519 pass - last update
about 1 year ago 30,530 pass - last update
12 months ago 30,552 pass - last update
12 months ago 30,602 pass - last update
12 months ago 30,604 pass - last update
12 months ago 30,605 pass - last update
12 months ago 30,667 pass - last update
12 months ago 30,675 pass - last update
12 months ago 30,678 pass, 2 fail - last update
12 months ago 30,684 pass - last update
12 months ago 30,688 pass - last update
12 months ago 30,688 pass - last update
12 months ago 30,688 pass - last update
11 months ago 30,696 pass - last update
11 months ago Custom Commands Failed - last update
11 months ago 30,712 pass - last update
11 months ago 30,724 pass - Status changed to Fixed
11 months ago 10:47am 15 December 2023 - Status changed to Needs work
11 months ago 7:58am 18 December 2023 - 🇮🇳India AkshayAdhav Pune, India 🇮🇳
In 10.2.x version the code for
.form-actions .dropbutton-wrapper
was:.form-actions .dropbutton-wrapper, .field-actions .dropbutton-wrapper { margin: var(--space-xs) var(--space-m) var(--space-xs) 0; }
With this code, the dropdown had proper alignment.
In 11.x version it has been changed to:
.form-actions .dropbutton-wrapper, .field-actions .dropbutton-wrapper { margin-block: var(--space-xs); margin-inline: var(--space-m) 0; }
And now it's breaking the dropdown alignment.
Steps to reproduce it:
- Install the contrib module Workbench Moderation →
- Now after enabling the module edit any content type inside the structure and enable the moderation from the Manage moderation tab.
- Now create new content of the respective content type and now you can see the issue. - 🇮🇳India AkshayAdhav Pune, India 🇮🇳
Creating a patch file instead of raising an MR as I am getting issues while creating a new branch from 11.x branch.
- last update
11 months ago 30,766 pass - Merge request !5859#3303547 - Bug fixes in Claro's refactored dropdown stylesheet. → (Open) created by AkshayAdhav
- Status changed to Needs review
11 months ago 9:36am 18 December 2023 Hi @AkshayAdhav,
The alignment issue is handling in this - https://www.drupal.org/project/drupal/issues/3391800 🐛 Dropdown button display becomes narrow when text is long Needs work
Thanks- 🇮🇳India AkshayAdhav Pune, India 🇮🇳
Hi @shweta__sharma
The issue you have mentioned is about vertical displacement along with the issue of the button's text length.
As this particular issue was closed with wrong property values, it was adding left margin instead of right margin. You can check the screenshots attached in my comment #45 📌 Refactor Claro's dropbutton stylesheet Needs review . Ohh! Thanks, @AkshayAdhav for the clarity. I tested your MR 5859 on Drupal 11 the MR is cleanly applied and the issue is fixed. The space is added between buttons now. Attached screenshot for reference.
- Status changed to RTBC
11 months ago 11:25am 18 December 2023 - last update
11 months ago Patch Failed to Apply - last update
11 months ago Patch Failed to Apply - last update
11 months ago Patch Failed to Apply - last update
11 months ago Patch Failed to Apply - last update
11 months ago Patch Failed to Apply - last update
11 months ago Patch Failed to Apply - Status changed to Needs review
11 months ago 5:04am 30 December 2023 - 🇳🇿New Zealand quietone
I'm triaging RTBC issues → . I read the IS and the comments.
This was committed to 11.x and then re-opened for a problem with the contrib module, Workbench Moderation. My first question is this reproducible with just Drupal core? The same comment mentions 10.2.x, so is this a problem only on 10.2?
I have found that opening Fixed issues makes it difficult to track history of problems, so the discussion from #45 onwards may need to move to a new issue.
- Status changed to Fixed
11 months ago 5:46am 30 December 2023 - 🇫🇷France nod_ Lille
and to anwser the questions.
The problem is not present in 10.2 because it doesn't have the refactor, 10.2 version was used as an example of what the code and behavior should be.
It is probably not possible to replicate with core since we got rid of dropbuttons on those kind of submits a while back. Automatically closed - issue fixed for 2 weeks with no activity.