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
I created this issue to track the issue found and explained in #3415 (comment) in its generality.
As it stands, we treat markup and TCSS in inconsistent ways, as we can see below.
The label widget and the label of the checkbox have the same markup and the same TCSS and yet they look different:
It's also arguable whether any of the two options are the correct one.
Code for the app above
fromtextual.appimportAppfromtextual.widgetsimportCheckbox, LabelclassCheckboxApp(App):
CSS=""" Checkbox > .toggle--label, Label { color: white; text-opacity: 50%; } """defcompose(self):
yieldCheckbox("[red bold]This is just[/] some text.")
yieldLabel("[red bold]This is just[/] some text.")
if__name__=="__main__":
CheckboxApp().run()
The text was updated successfully, but these errors were encountered:
I created this issue to track the issue found and explained in #3415 (comment) in its generality.
As it stands, we treat markup and TCSS in inconsistent ways, as we can see below.
The label widget and the label of the checkbox have the same markup and the same TCSS and yet they look different:
It's also arguable whether any of the two options are the correct one.
Code for the app above
The text was updated successfully, but these errors were encountered: