-
Notifications
You must be signed in to change notification settings - Fork 21
Issue #3526953 by richardgaunt, fionamorrison23, iulianrotaru, joshua1234511: ct-align class overwriting align-center #1397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
3cc08c7
5636482
69fc06f
b092c50
3384b46
d8ddd04
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// This file contains styles for the CKEditor component in CivicTheme. | ||
// | ||
|
||
.ct-figure { | ||
&.align-left, | ||
&.align-center, | ||
&.align-right { | ||
display: block; | ||
margin-block-start: ct-particle(2); | ||
margin-block-end: ct-particle(2); | ||
margin-inline-start: ct-particle-px(5); | ||
margin-inline-end: ct-particle-px(5); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
// These overrides will not be visible in the Storybook. | ||
@import 'page/page'; | ||
@import 'header/header'; | ||
@import 'ckeditor/ckeditor'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The issue is specific to Drupal’s creditor classes, and therefore, it was more appropriate to handle it as a Drupal-specific override. Hence not added via UIKit. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alan-cole This is best answered - will this cause issues if we have this included in the base Drupal CSS? From my mind no. |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand how these changes could fix the issue.
Can you provide screenshots showing how these changes fix the alignment issues mentioned in the ticket?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ct-figure removes the styles which are needed for align-center align-right

Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is quite working properly.
Looking at the screenshot, it looks like the "center" aligned image is really just left aligned, but sitting indented, and flush against the left aligned image.
If you look at the screenshot below, the center would be slightly different if it was sitting properly in the center: