Skip to content

Commit 453b24c

Browse files
authored
Feathers: set checkbox marker Visibility::Inherited when checked. (#21847)
# Objective Seems the checkbox part is missing in PR #21789. Make the checkbox marker invisible when the whole widget is `Visibility::Hidden`. ## Solution Change the maker's visibility to `Inherited` rather than `Visible`. ## Testing Manually added `Visibility::Hidden` to the root node of `examples/ui/feathers.rs`, and verified nothing is visible.
1 parent 0fe71f9 commit 453b24c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_feathers/src/controls/checkbox.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ fn set_checkbox_styles(
289289

290290
// Change mark visibility
291291
commands.entity(mark_ent).insert(match checked {
292-
true => Visibility::Visible,
292+
true => Visibility::Inherited,
293293
false => Visibility::Hidden,
294294
});
295295

0 commit comments

Comments
 (0)