Skip to content

Commit 73a3132

Browse files
authored
CoreRadio should require Checkable, not Checked. (#19836)
This was a mistake in my original PR #19778: a holdover from when Checked was not a marker component.
1 parent 45a379c commit 73a3132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_core_widgets/src/core_radio.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use bevy_input::keyboard::{KeyCode, KeyboardInput};
1515
use bevy_input::ButtonState;
1616
use bevy_input_focus::FocusedInput;
1717
use bevy_picking::events::{Click, Pointer};
18-
use bevy_ui::{Checked, InteractionDisabled};
18+
use bevy_ui::{Checkable, Checked, InteractionDisabled};
1919

2020
/// Headless widget implementation for a "radio button group". This component is used to group
2121
/// multiple [`CoreRadio`] components together, allowing them to behave as a single unit. It
@@ -46,7 +46,7 @@ pub struct CoreRadioGroup {
4646
/// but rather the enclosing group should be focusable.
4747
/// See <https://www.w3.org/WAI/ARIA/apg/patterns/radio>/
4848
#[derive(Component, Debug)]
49-
#[require(AccessibilityNode(accesskit::Node::new(Role::RadioButton)), Checked)]
49+
#[require(AccessibilityNode(accesskit::Node::new(Role::RadioButton)), Checkable)]
5050
pub struct CoreRadio;
5151

5252
fn radio_group_on_key_input(

0 commit comments

Comments
 (0)