Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294268

Fix side-effect of nested alignment override css

$
0
0

Problem/Motivation

This is a follow-up issue to #3078287: Constrain the width of aligned images, media, blockquotes etc to a max of 75%

In that issue we added css alignment overrides like this:

+++ b/core/modules/filter/css/filter.align.css
@@ -0,0 +1,52 @@
+/**
+ * Within the WYSIWYG, if the alignment class is applied within a widget,
+ * unset the rules.
+ */
+.cke_widget_wrapper.align-left .align-left,
+.cke_widget_wrapper.align-right .align-right {
+  max-width: unset;
+}
+
+.cke_widget_wrapper.align-left .align-left {
+  margin-right: unset;
+}
+
+.cke_widget_wrapper.align-right .align-right {
+  margin-left: unset;
+}

This can have undesirable edge-case side effects if there are descendant elements which have alignment, they won't display the alignment.

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Release notes snippet


Viewing all articles
Browse latest Browse all 294268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>