From a1ab50a9f050bbd0ef5af4c799743e7aea46c48f Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 20 Nov 2021 17:43:34 +0100 Subject: Document that transparent StyleBoxes/textures should be used for UI focus --- doc/classes/CheckButton.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/classes/CheckButton.xml') diff --git a/doc/classes/CheckButton.xml b/doc/classes/CheckButton.xml index cf3aa869c3..659fb5126f 100644 --- a/doc/classes/CheckButton.xml +++ b/doc/classes/CheckButton.xml @@ -78,7 +78,7 @@ The [StyleBox] to display as a background when the [CheckButton] is disabled. - The [StyleBox] to display as a background when the [CheckButton] is focused. + The [StyleBox] to display as a background when the [CheckButton] is focused. The [code]focus[/code] [StyleBox] is displayed [i]over[/i] the base [StyleBox], so a partially transparent [StyleBox] should be used to ensure the base [StyleBox] remains visible. A [StyleBox] that represents an outline or an underline works well for this purpose. To disable the focus visual effect, assign a [StyleBoxEmpty] resource. Note that disabling the focus visual effect will harm keyboard/controller navigation usability, so this is not recommended for accessibility reasons. The [StyleBox] to display as a background when the [CheckButton] is hovered. -- cgit v1.2.3