Remove outline when clicking button?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JorensM

Hello, I’m trying to make a custom button style, and I don’t know how to remove the outline when the button is clicked. Please help, thanks!

Pic:
enter image description here

:bust_in_silhouette: Reply From: Calinou

You can do this by assigning a StyleBoxEmpty to the button’s Focus style (either in the theme or in the button’s Custom Styles). However, consider accessibility when doing so, as removing the focus outline makes the GUI no longer accessible to keyboard/controller-only users.

2 Likes