Skip to content

Commit 979e759

Browse files
authored
Merge pull request #2006 from pnp/copilot-test
fix quill global style issue
2 parents 27348df + 86db300 commit 979e759

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/controls/richText/RichText.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
width: 100%;
106106
}
107107

108-
:global {
108+
:global(.pnp-richtext-quill-container) {
109109
.ql-toolbar {
110110
background-color: transparent;
111111
color: "[theme:neutralLighterAlt, default:#{$ms-color-neutralLighterAlt}]";

src/controls/richText/RichText.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { initializeIcons } from '@fluentui/react/lib/Icons';
2222
import { Label } from '@fluentui/react/lib/Label';
2323

2424
const TOOLBARPADDING: number = 28;
25+
const CONTAINER_CLASS: string = 'pnp-richtext-quill-container';
2526
/**
2627
* Creates a rich text editing control that mimics the out-of-the-box
2728
* SharePoint Rich Text control.
@@ -637,6 +638,7 @@ export class RichText extends React.Component<IRichTextProps, IRichTextState> {
637638
className={
638639
css(
639640
styles.richtext && this.state.editing ? 'ql-active' : null,
641+
CONTAINER_CLASS,
640642
this.props.className || null
641643
) || null
642644
}

0 commit comments

Comments
 (0)