Skip to content
15 changes: 15 additions & 0 deletions web/themes/contrib/civictheme/assets/sass/ckeditor/_ckeditor.scss
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);
Copy link
Collaborator

@alan-cole alan-cole Jul 25, 2025

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2025-07-25 at 12 42 18 PM Screenshot 2025-07-25 at 12 43 52 PM

The ct-figure removes the styles which are needed for align-center align-right
Screenshot 2025-07-25 at 12 44 30 PM

Copy link
Collaborator

@alan-cole alan-cole Jul 29, 2025

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:

Screenshot 2025-07-29 at 1 51 18 pm

}
}
1 change: 1 addition & 0 deletions web/themes/contrib/civictheme/assets/sass/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
// These overrides will not be visible in the Storybook.
@import 'page/page';
@import 'header/header';
@import 'ckeditor/ckeditor';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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.

Copy link
Collaborator

Choose a reason for hiding this comment

The 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.