Skip to content

Commit daf7274

Browse files
committed
Ensure richtext styles are applied to content of range decoys
1 parent 69c4840 commit daf7274

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/components/Main/index.lazy.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@use '../../constants' as *;
22
@use '../../colours';
33
@layer main {
4-
@scope ([data-key="body"]) to ([data-component]:not([data-component="LegacyWysiwyg"])) {
4+
@scope ([data-key="body"]) to ([data-component]:not([data-component="LegacyWysiwyg"], [data-component="Decoy"])) {
55
.Main {
66
--Main-offsetTop: #{$unit * 4}; // default: will change
77
display: block;

src/app/components/utilities/richtext.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@use '../../constants' as *;
22
@layer richtext {
3-
@scope ([data-key="body"]) to ([data-component]:not([data-component="LegacyWysiwyg"])) {
3+
@scope ([data-key="body"]) to ([data-component]:not([data-component="LegacyWysiwyg"],[data-component="Decoy"])) {
44
// Attribute selectors are used for `u-richtext` so those styles also apply to
55
// `u-richtext-invert`.
66
[class*='u-richtext'],

0 commit comments

Comments
 (0)