Add missing CSS for HTML comments in RichText

Because CSS for HTML comments in RichText is a part of BlockEditor,
and we want to minimize the plugin build, this commit adds the necessary CSS.
[MAILPOET-6387]
This commit is contained in:
Jan Lysý
2024-12-15 19:15:54 +01:00
committed by Rostislav Wolný
parent 2f0cec5fde
commit cd9b8dab64

View File

@@ -143,3 +143,19 @@
.block-editor-block-inspector__advanced {
display: none;
}
// Temporary styles for Rich Text HTML comments from the PR: https://github.com/WordPress/gutenberg/pull/62128/files
[data-rich-text-comment],
[data-rich-text-format-boundary] {
border-radius: 2px;
}
[data-rich-text-comment] {
background-color: currentColor;
span {
color: currentColor;
filter: invert(100%);
padding: 0 2px;
}
}