-
-
Couldn't load subscription status.
- Fork 1k
Closed
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested
Description
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
from textual.app import App
from textual.widgets import Checkbox, Label
class CheckboxApp(App):
CSS = """
Checkbox > .toggle--label, Label {
color: white;
text-opacity: 50%;
}
"""
def compose(self):
yield Checkbox("[red bold]This is just[/] some text.")
yield Label("[red bold]This is just[/] some text.")
if __name__ == "__main__":
CheckboxApp().run()Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested
