- 🇳🇿New Zealand quietone
This is tagged for an issue summary update. For this issue that looks suitable for a novice, adding tag. For more information see Write an issue summary for an existing issue → for guidance.
- 🇮🇳India AditiVB
Aditi Saraf → made their first commit to this issue’s fork.
- last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago 30,413 pass - Status changed to Needs review
over 1 year ago 4:04pm 18 October 2023 - 🇮🇳India anushrikumari
We, the mentoring team, are triaging issues for first-time contributors at DrupalCon Lille and I think this is a good issue for the contribution day.
We are reserving this issue so please don't work on this issue if you are not at DrupalCon Lille. You can continue the work when the event is over. - 🇧🇪Belgium mathiasbaetens
@kristofvercruyssen @simontrivali and me will be working on this issue at DrupalCon Lille with out mentors @anushrikumari and @shriaas
- 🇧🇪Belgium SimonTrivali
Patch seems to work perfectly!
Screenshots before patch:
Screenshots after the patch:
- Status changed to RTBC
over 1 year ago 10:06am 20 October 2023 - last update
over 1 year ago 29,260 pass, 20 fail - Status changed to Needs work
over 1 year ago 5:23pm 20 October 2023 - 🇺🇸United States bnjmnm Ann Arbor, MI
+++ b/core/themes/olivero/css/components/button.pcss.css @@ -106,6 +106,13 @@ +#drupal-off-canvas input[type="submit"] { + &.button { + float: left; + width: auto; + } +}
Floats should only be added as a last resort - and that would likely only be in situations where floats are already in use nearby. Floats can lead to layout problems and accessibility bugs and CSS has added many new features to make floats unnecessary.
This should instead use a modern alternative such as flexbox for positioning.
- last update
over 1 year ago Patch Failed to Apply - Status changed to Needs review
7 months ago 6:58am 6 September 2024 - 🇵🇭Philippines a_ramos
I'm setting the status of this issue to "Needs review" as the patch is updated.
- 🇮🇳India dishakatariya
Hi, I have verified this issue, and it looks fine to me.
Testing Steps
1. Go to your Drupal site.
2. Go to any page with an off canvas dialog with a submit button. ( For example in the module Layout Builder.)
3. Observe the size of the buttonTesting Results
Patch applied cleanly and Olivero: submit button isn't looking wide in the off canvas dialog boxAttaching before and after screenshot.
Hence it can be move to RTBC
RTBC++Thanks!
- Status changed to Needs work
7 months ago 5:16pm 6 September 2024 - 🇺🇸United States smustgrave
Fixes should be in MRs
Leaving issue summary tag as the User interface changes section is still empty.
- Status changed to Needs review
7 months ago 9:16pm 6 September 2024 The button should be disabled when making a post if any required field in the form is empty.
- Status changed to Needs work
7 months ago 9:20pm 6 September 2024 - Assigned to akshaydalvi212
- Merge request !9477Issue #3213995 by gauravvvv, cindytwilliams: Olivero: submit button is too... → (Closed) created by akshaydalvi212
- Issue was unassigned.
- Status changed to Needs review
7 months ago 8:27am 12 September 2024 - Status changed to Needs work
7 months ago 1:59pm 12 September 2024 - 🇺🇸United States smustgrave
@akshaydalvi212 thanks for working on it but please read the comments @28 mentions that #21 still needed and #29 mentions #21 still needed
From what I can tell the patch was just turned to an MR.
- First commit to issue fork.
- 🇺🇦Ukraine SmovS Lutsk
I've updated MR!9477.
There are no reasons for "float: left".
Changed the width of the button to auto and restricted max-width to 100%.Please review.
- 🇬🇧United Kingdom JimiOBrien London
jimiobrien → changed the visibility of the branch 3213995-olivero-submit-button to hidden.
- 🇪🇸Spain rodrigoaguilera Barcelona
rodrigoaguilera → changed the visibility of the branch 3213995-olivero-submit-button to active.
- 🇪🇸Spain rodrigoaguilera Barcelona
@jimiobrien Was hiding the branch an accident?
- 🇳🇱Netherlands groendijk
Just thinking.. In /web/core/misc/dialog/off-canvas/css/button.css the
#drupal-off-canvas-wrapper .button
is set to awidth: 100%;
.
If the dialog is on the right side of the (desktop) screen I guess it's designed to be as wide as the dialog. If the dialog is at the top or at mobile, it indeed looks a bit strange. I think it would look strange in all themes. Wouldn't it then be better to fix this in the dialog off-canvas button css file and maybe remove thewidth: 100%
over there, or alternatively check if dialog is at left/right side and set the width to 100%? - 🇳🇱Netherlands groendijk
Going to work on this issue on DrupalCon Barcalona 2024. Chris Darke was my mentor. Discussed this issue with Ben. Going to start a new branch and start from there.
- Merge request !9648Resolve #3213995 "Submit button is too wide off canvas" → (Closed) created by groendijk
- 🇳🇱Netherlands groendijk
I've created the Merge Request. Can someone review it? https://git.drupalcode.org/project/drupal/-/merge_requests/9648
- 🇬🇧United Kingdom ChrisDarke London
I have been helping groendijk with this issue
- 🇺🇸United States bnjmnm Ann Arbor, MI
The cspell error in DrupalCI appears unrelated to the MR. As far as the code changes go, this is RTBC but (as one might assume) should not be committed until whatever underlying issue causing the cspell failures is addressed. We can try re-running it later.
- 🇺🇸United States bnjmnm Ann Arbor, MI
It may take a bit to address the gitlab thing so changing status as to not confuse any committers - but this is effectively RTBC as soon as the gitlab diff is worked out and cspell runs green
- 🇺🇸United States bnjmnm Ann Arbor, MI
I was pleased enough by the code that I forgot some housekeeping stuff: The issue summary should provide before/after screenshots with the after using the current MR.
The MR itself is RTBC IMO
- 🇺🇸United States bnjmnm Ann Arbor, MI
TY for the screenshots - I added them to the issue summary and this is back to RTBC.
- 🇫🇷France nod_ Lille
Committed and pushed 808ceae426b to 11.x and 628226171fc to 11.0.x and 687a650a490 to 10.4.x and fc0b1b87739 to 10.3.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.