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

Fix Wysiwyg/Trumbowyg editor colors when dark theme enabled #16356

Merged
merged 16 commits into from
Jun 27, 2024

Conversation

mdameer
Copy link
Contributor

@mdameer mdameer commented Jun 21, 2024

Fix #16137, #16362

This PR fixes the Trumbowyg editor issues in dark mode by switching to the component's default theme for both light and dark modes. It also keeps a few custom CSS classes to ensure the borders match Orchard's styles.

image

image

image

image

@mdameer mdameer marked this pull request as draft June 21, 2024 09:59
Copy link
Member

@hishamco hishamco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just add two lines with Mike's suggestion

@mdameer mdameer requested a review from MikeAlhayek June 23, 2024 07:04
@mdameer mdameer requested a review from MikeAlhayek June 23, 2024 14:40
@hishamco
Copy link
Member

Why the changes increased to 35 files :)

@mdameer
Copy link
Contributor Author

mdameer commented Jun 24, 2024

Why the changes increased to 35 files :)

Most of the changes involve moving static files to the correct folders. If you prefer, I can undo any unrelated changes.

The main change is to abstract the theme manager to be reusable by the admin and other themes and ensure the Trumbowyg editor adheres to theme mode changes.

@MikeAlhayek MikeAlhayek merged commit 9133c52 into OrchardCMS:main Jun 27, 2024
20 checks passed
@mdameer mdameer deleted the 16137-fix-wysiwyg-dark-theme branch June 27, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Background and foreground colors for hovered wysiwig/trumbowyg editor buttons are almost indistinguishable
4 participants