Document that transparent StyleBoxes/textures should be used for UI focus
This commit is contained in:
@ -76,7 +76,7 @@
|
||||
The [StyleBox] to display as a background when the [CheckBox] is disabled.
|
||||
</theme_item>
|
||||
<theme_item name="focus" data_type="style" type="StyleBox">
|
||||
The [StyleBox] to display as a background when the [CheckBox] is focused.
|
||||
The [StyleBox] to display as a background when the [CheckBox] 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.
|
||||
</theme_item>
|
||||
<theme_item name="hover" data_type="style" type="StyleBox">
|
||||
The [StyleBox] to display as a background when the [CheckBox] is hovered.
|
||||
|
||||
Reference in New Issue
Block a user