feat: better a11y support

This commit is contained in:
Ashley Wulber 2024-11-11 16:58:38 -05:00 committed by Jeremy Soller
parent be4c0a0848
commit 2ecef3c7b2
14 changed files with 144 additions and 16 deletions

View file

@ -274,6 +274,17 @@ where
fn set_id(&mut self, id: crate::widget::Id) {
self.container.set_id(id);
}
#[cfg(feature = "a11y")]
/// get the a11y nodes for the widget
fn a11y_nodes(
&self,
layout: iced_core::Layout<'_>,
state: &Tree,
p: iced::mouse::Cursor,
) -> iced_accessibility::A11yTree {
self.container.a11y_nodes(layout, state, p)
}
}
impl<'a, Message, Renderer> From<LayerContainer<'a, Message, Renderer>>