Commit b662dca
authored
Fix
### Motivation
Fixes #5828. Applying Tailwind `bg-*` classes to `ui.log` results in
"dirty" colors (e.g. `bg-white` shows as #F8FAFC instead of pure white)
because a semi-transparent `background-color: rgba(127, 159, 191, 0.05)`
on the inner `.q-scrollarea__container` blends on top of the
user-specified background.
### Implementation
Move the default `background-color` from `.nicegui-log
.q-scrollarea__container` to `.nicegui-log` itself. This way,
user-applied `bg-*` classes on the log element win via CSS specificity,
cleanly overriding the default tint instead of being layered underneath
it.
### Progress
- [x] I chose a meaningful title that completes the sentence: "If
applied, this PR will..."
- [x] The implementation is complete.
- [x] This is not a security issue.
- [x] Pytests are not necessary.
- [x] Documentation is not necessary.ui.log background color being tinted by inner element (#5831)1 parent 1fd3345 commit b662dca
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
219 | | - | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
0 commit comments