Closed (fixed)
Project:
Drupal core
Version:
10.3.x-dev
Component:
CSS
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 May 2021 at 10:57 UTC
Updated:
19 Oct 2024 at 22:19 UTC
Jump to comment: Most recent, Most recent file




Comments
Comment #2
gauravvvv commentedPatch attached for same, please review.
Comment #4
gauravvvv commentedRandom failure, moving to NR
Comment #5
cindytwilliams commentedPatch #2 applies. The submit button in the top dialog box is now displaying as the correct size.
Desktop:

Mobile:

Comment #6
lauriiiThis happens with all core themes meaning we should probably fix this in the off-canvas itself.
Comment #7
radheymkumar commented@Gauravmahlawat I am not able to reproduce this issue will u suggest me about that how i can check this issue
I am checking in drupal-9.3.x-dev
sharing screenshot for after and before check
Comment #8
bnjmnmRe #7 This is reproducable by using the tugboat link in the issue summary https://tugboat-aqrmztryfqsezpvnghut1cszck2wwasr.tugboat.qa/dialog and clicking "off canvas top dialog". That demo page happens to use password reset, but the issue reported is not specific to the password reset process, the concern is how the button appears in the dialog.
This could be made clearer in the issue summary
Comment #13
quietone commentedThis 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.
Comment #15
_utsavsharma commentedPatch for 11.x.
Comment #16
anushrikumari commentedWe, 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.
Comment #17
mathiasbaetens commented@kristofvercruyssen @simontrivali and me will be working on this issue at DrupalCon Lille with our mentors @anushrikumari and @shriaas
Comment #18
simontrivali commentedPatch seems to work perfectly!
Comment #19
mathiasbaetens commentedIssue summary updated as of comment #19
Comment #20
mathiasbaetens commentedThis patch seems to be working. Moving to RTBC.
Comment #21
bnjmnmFloats 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.
Comment #22
gauravvvv commentedUpdating attributions
Comment #23
nitin shrivastava commentedattribution updated.
trying to address #21
Comment #24
a_ramos commentedI'm setting the status of this issue to "Needs review" as the patch is updated. It's my first contribution.
Comment #25
dishakatariya commentedHi, 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 button
Testing Results
Patch applied cleanly and Olivero: submit button isn't looking wide in the off canvas dialog box
Attaching before and after screenshot.
Hence it can be move to RTBC
RTBC++
Thanks!
Comment #26
smustgrave commentedFixes should be in MRs
Leaving issue summary tag as the User interface changes section is still empty.
Comment #27
jvbrian commentedThe button should be disabled when making a post if any required field in the form is empty.
Comment #28
smustgrave commented#26 is still needed
Comment #29
bnjmnm#21 also needed. The only change made since then was changing the order of CSS rules - nothing to address the feedback.
Comment #30
akshaydalvi212 commentedComment #32
akshaydalvi212 commentedComment #33
smustgrave commented@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.
Comment #35
smovs commentedI'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.
Comment #38
rodrigoaguilera@jimiobrien Was hiding the branch an accident?
Comment #39
rodrigoaguileraA look at the failing tests is needed
Comment #40
bnjmnmIt was correctly pointed out in #6 that this is not specific to Olivero, but the issue summary was still specifying that. The solution will likely be inside the off-canvas reset CSS in core/misc/dialog/off-canvas/css/
Comment #41
groendijk commentedJust thinking.. In /web/core/misc/dialog/off-canvas/css/button.css the
#drupal-off-canvas-wrapper .buttonis 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 the
width: 100%over there, or alternatively check if dialog is at left/right side and set the width to 100%?----
edit: yeah what @bnjmnm says
Comment #42
groendijk commentedGoing 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.
Comment #44
groendijk commentedI've created the Merge Request. Can someone review it? https://git.drupalcode.org/project/drupal/-/merge_requests/9648
Comment #46
chrisdarke commentedI have been helping groendijk with this issue
Comment #47
bnjmnmThe 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.
Comment #48
bnjmnmIt 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
Comment #50
bnjmnmI 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
Comment #51
groendijk commentedHousekeeping: Added 4 screenshots.
before - looks good, wide version doesnt.
after - looks good, wide version also.
Comment #52
bnjmnmTY for the screenshots - I added them to the issue summary and this is back to RTBC.
Comment #58
nod_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!