Skip to content

Commit 81f4ad2

Browse files
authored
Restore colors for word limit warning message in tinymce widget (#4641)
The colors went missing with the daisyUI refactor 9cfc791 The use of `!important` is not great, but it's already widespread inside this file (because the tinymce stylesheet is loaded after Hypha's and therefore takes precedence). ## Screenshots <details><summary>Before</summary> <img width="768" height="546" alt="Screenshot 2025-11-27 at 16-26-51 Max words" src="https://github.com/user-attachments/assets/196c9cff-16c0-47db-aff6-6d2609313d3a" /> </details> <details><summary>After</summary> <img width="768" height="546" alt="Screenshot 2025-11-27 at 16-29-04 Max words" src="https://github.com/user-attachments/assets/592c58e8-8c0d-4afc-b824-eb31db087f28" /> </details>
1 parent 2e95dbf commit 81f4ad2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

hypha/static_src/tailwind/components/tinymce.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@
4545

4646
.tox-statusbar__wordcount.word-count-warning,
4747
.tox-statusbar__wordcount.word-count-warning-2 {
48-
background-color: var(--color-warning);
49-
color: var(--color-warning-content);
50-
font-weight: bold;
48+
background-color: var(--color-warning) !important;
49+
color: var(--color-warning-content) !important;
50+
font-weight: bold !important;
5151
}
5252

5353
.tox-statusbar__wordcount.word-count-warning-2 {
54-
background-color: var(--color-error);
55-
color: var(--color-error-content);
54+
background-color: var(--color-error) !important;
55+
color: var(--color-error-content) !important;
5656
}
5757

5858
.tox-statusbar a,

0 commit comments

Comments
 (0)