Skip to content
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

[Enhancement] Apply current theme to RichText control (starting with border color) #1428

Closed
michaelmaillot opened this issue Jan 27, 2023 · 5 comments
Labels
status:fixed-next-drop Issue will be fixed in upcoming release. type:enhancement New feature or enhancement of existing capability
Milestone

Comments

@michaelmaillot
Copy link
Collaborator

Category

[x] Enhancement

[ ] Bug

[ ] Question

Version

Please specify what version of the library you are using: [3.12.0]

Expected / Desired Behavior / Question

When working with the RichText control, we should have the same theme used as the one on the target site.

Observed Behavior

Currently, the target site's theme isn't reflected on the RichText control:

image

Steps to Reproduce

  • Init a SPFx project which contains the RichText control
  • Start local server and display the control on a SharePoint site that has a specific theme (other than the default one)

Additional info

Maybe this issue can regroup other improvments regarding control's theme adjustments. I was thinking about #669 for example.

@ghost
Copy link

ghost commented Jan 27, 2023

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label Jan 27, 2023
@michaelmaillot
Copy link
Collaborator Author

michaelmaillot commented Jan 27, 2023

The direct resolution for the border color is to update the RichText.module.scss file and to update the border-color attribute:

.ql-active .ql-editor:active:hover {
    border-color: '[theme:themePrimary, default:#0078d7]'; // instead of $ms-color-themePrimary
}

But there are probably other updates to do in the SASS module.

I'm open to discussion about improvments and if that's ok, I can give a try on this one.

@AJIXuMuK AJIXuMuK added type:enhancement New feature or enhancement of existing capability and removed Needs: Triage 🔍 labels Jan 30, 2023
@nbelyh
Copy link
Contributor

nbelyh commented Feb 24, 2023

Most issues with RichText theme should be fixed with #1467
The "black" toolbar is there by design, as far as I understand. But now the theme should be reflected properly (border and active color, in particular)

@michaelmaillot
Copy link
Collaborator Author

Awesome news! Thanks for working on this and your feedback!

@michaelmaillot michaelmaillot added the status:fixed-next-drop Issue will be fixed in upcoming release. label Apr 13, 2024
@michaelmaillot michaelmaillot added this to the 3.13.0 milestone Apr 13, 2024
@michaelmaillot
Copy link
Collaborator Author

Closing this as fixed through @nbelyh's improvment, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:fixed-next-drop Issue will be fixed in upcoming release. type:enhancement New feature or enhancement of existing capability
Projects
None yet
Development

No branches or pull requests

3 participants