-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dark Theme support for RichText #669
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
More information: looks like the RichText it just applies ql-snow Quill theme and completely ignores whatever is selected in SharePoint (i.e. it is not theme-aware). A minimalistic workaround could be:
|
Hi @nbelyh, |
Is there any kind of timeline for this? This bug makes the control nearly unusable on sites with dark backgrounds, and also affects the side panel text. |
@dunlapm I have fixed that for my project (look at the above scss fragment for example), but this whole thing (proper theme support for spfx controls library, especially this control) will IMHO require much more effort. I have tried that, but as far as I remember, "we need to go deeper" and the problem lies actually down in the SPFx build tools, that are not configured to support styles properly (the @microsoft/load-themed-styles package). So the theming that comes from FluentUI works, but direct definitions using themes don't. But I may be mistaking or forgetting something, it was about 1.5 years ago. |
Created PR to fix the issue |
New release just published, closing |
Category
[x] Enhancement
[ ] Bug
[x] Question
Version
Please specify what version of the library you are using: [ 1.20 ]
Expected / Desired Behavior / Question
If you select "Dark" theme type and use rich text edit, the defaults make text unreadable. Basically, if you just enter the text (using the "standard" theme) and then switch the theme to "Dark", the content becomes like this. The text is almost invisible.
It would be really nice if the RichText defaults respected the default theme colors. As it's a wrapper around quill, so the defaults on the top DIV (ql-editor) needs to be changed to respect the basic theme color/background.
The text was updated successfully, but these errors were encountered: