[FilePicker] Golbal quill styles from FilePicker overwrite other quill editors #1996
Labels
status:fixed-next-drop
Issue will be fixed in upcoming release.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Category
[ ] Enhancement
[x ] Bug
[ ] Question
Version
Please specify what version of the library you are using: [ 3.21.0 ]
Expected / Desired Behavior / Question
When using the filepicker i would expect the quill styling to only apply to the quill components used inside of the filepicker or libary. It shouldn't set/overwrite quill styling classes globaly.
Observed Behavior
I use the Filepicker component and another libary which also uses react-quill. When i add the filepicker component to my code the quill toolbar from the second libary is suddenly hidden with display set to none.
The FilePicker component in @pnp/spfx-controls-react applies global styles to the .ql-toolbar class using :global in its SCSS (also other quill classes are overwritten). This causes unintended side effects in projects where other react-quill editors are used, because the toolbar is hidden (display: none) globally for unrelated quill editors.
The styling comes from src\controls\richText\RichText.module.scss
:global {
.ql-toolbar {
background-color: transparent;
color: "[theme:neutralLighterAlt, default:#{$ms-color-neutralLighterAlt}]";
border: none;
display: none;
...
Steps to Reproduce
Use the react-quill libary in your project and add the filepicker component ->global styling from filepicker gets applied to the unrelated react-quill.
Thanks!
The text was updated successfully, but these errors were encountered: