How to click button without showing focus #4272
Closed
Darkstarinternet
started this conversation in
General
Replies: 1 comment 1 reply
-
This comes from the textual/src/textual/widgets/_button.py Lines 53 to 54 in f55610e You can simply override this in your CSS (however then of course you won't know what button is currently focused!): Button:focus {
text-style: bold;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm loving textual but I'm having an issue I can't figure out. I am trying to create buttons that don't show the focused state. When I use a key binding to press the button it works exactly how I want, however if I click a button using the mouse the button gets a focused state which shows as a highlight around the text label. How do I remove this focus indicator so it acts just like it does with the key binding?
My simple example is:
Beta Was this translation helpful? Give feedback.
All reactions