Inside the CSS file "core/modules/system/css/components/align.module.css"
replace :
.align-center {
display: block;
margin-right: auto;
margin-left: auto;
}
with :
.align-center {
display: flex;
justify-content: center;
}
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | after_patch10.png | 129.41 KB | sonam.chaturvedi |
| #14 | before_patch10.png | 138.78 KB | sonam.chaturvedi |
| #10 | 3205025-10.patch | 439 bytes | indrajithkb |
| #5 | 3205025-5.patch | 475 bytes | djsagar |
Issue fork drupal-3205025
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
djsagar commentedComment #5
djsagar commentedHi steveoriol,
I just converting you comment on patch for class align-center issue.
Please review and feedback, Please letc me know if i'm doing something wrong.
Thanks!
Comment #6
steveoriolHello djsagar,
I am no longer sure that this modification works for everyone and in all cases, maybe it is better to make this modification by overwriting it directly in the sub-theme chosen for the site ...?
There is also, not only the file "core/modules/system/css/components/align.module.css" to modify but also "core/themes/stable/css/system/components/align.module.css" and perhaps other too ...
Thank you.
Comment #8
mitthukumawat commentedPatch #5 applied cleanly for me. The current CSS for core/modules/system/css/components/align.module.css is looking fine.
Comment #9
djsagar commentedThanks @mitthukumawat will resolved Custom Commands Failed issue and re-rolling patch.
Comment #10
indrajithkb commentedHi @djsagar thanks for the patch, here am re-rolling the patch with 9.3.x-dev please review the patch.
Comment #12
vikashsoni commentedApplied patch #10 in durpal-9.3.x-dev applied successfully.
core/modules/system/css/components/align.module.css has been modified and looking good for me
Thanks for the patch.....
Comment #14
sonam.chaturvedi commentedVerified and tested patch#10 on 9.5.x-dev. Patch applied successfully.
Test Result:
core/modules/system/css/components/align.module.css is updated to:
Before patch:

After patch:

Moving to RTBC
Comment #15
lauriiiWould it be possible to get more information what is the reported bug here? I think we should potentially change all of the
align-*classes to use flexbox but since this is reported as a bug, I'm curious to what is the bug we are solving.Comment #17
kristen polTriaging for bugsmash so tagging. Since this is reported as a bug, we need steps to reproduce starting with a vanilla Drupal install. Thanks.
Comment #19
smustgrave commentedSince there hasn't been a follow up to #15 or #17 going to close for now.
If still an issue please reopen adding steps to reproduce this issue.
Thanks all!