You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for the amazing framework and the huge steps in the recent months!
With the following code, I've stumpled across an problem with the textcolor of the ui.chip element.
fromniceguiimportui#The color does not matter. It's main purpose is being darkui.colors(primary='#002d55')
withui.header(elevated=False).classes('text-xl'):
ui.label('label font-bold').classes('font-bold')
ui.chip('chip text-bold').classes('text-bold')
ui.chip('icon chip',icon='person')
ui.icon('person')
ui.chip(text='chip')
ui.chip('chip font-bold').classes(add='font-bold')
ui.chip('chip text-bold').classes(add='text-bold')
ui.chip('chip text-xl').classes(add='text-xl')
ui.chip('icon',icon='person')
ui.label('Text label')
ui.run()
The two elements ui.label and ui.icon inside ui.header are correctly displayed with white textcolor, while the two ui.chip-elements are not. First I thought, tailwind and quasar are not working together. But as you can see with the other ui.chip-elements, its apparently not.
Even more interessting is, that when you disable the color property of .q-chip in your average webbrowser, the ui.chip-elements inside the header do change their textcolor (see attached screenshots), while the other do not.
Am I missing something? Thanks in advance for your help and time!
The text was updated successfully, but these errors were encountered:
If I understand correctly, you'd expect the text color of ui.chip to depend on the background color of the parent element like ui.header? I'd argue that it should depend on its own background color instead. But at the moment ui.chip doesn't adjust its text color based on its background color. You can do that explicitly using the "dark" prop:
Description
Hello everybody,
thanks for the amazing framework and the huge steps in the recent months!
With the following code, I've stumpled across an problem with the textcolor of the
ui.chip
element.The two elements
ui.label
andui.icon
insideui.header
are correctly displayed with white textcolor, while the twoui.chip
-elements are not. First I thought, tailwind and quasar are not working together. But as you can see with the otherui.chip
-elements, its apparently not.Even more interessting is, that when you disable the
color
property of.q-chip
in your average webbrowser, theui.chip
-elements inside the header do change their textcolor (see attached screenshots), while the other do not.Am I missing something? Thanks in advance for your help and time!
The text was updated successfully, but these errors were encountered: