fix: docs

This commit is contained in:
Ashley Wulber 2024-10-21 10:42:08 -04:00
parent 51b370ef48
commit 16f14793c7
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
9 changed files with 30 additions and 122 deletions

View file

@ -270,14 +270,14 @@ where
}
#[cfg(feature = "a11y")]
/// Sets the name of the [`Button`].
/// Sets the name of the [`Toggler`].
pub fn name(mut self, name: impl Into<Cow<'a, str>>) -> Self {
self.name = Some(name.into());
self
}
#[cfg(feature = "a11y")]
/// Sets the description of the [`Button`].
/// Sets the description of the [`Toggler`].
pub fn description_widget<T: iced_accessibility::Describes>(
mut self,
description: &T,
@ -289,7 +289,7 @@ where
}
#[cfg(feature = "a11y")]
/// Sets the description of the [`Button`].
/// Sets the description of the [`Toggler`].
pub fn description(mut self, description: impl Into<Cow<'a, str>>) -> Self {
self.description =
Some(iced_accessibility::Description::Text(description.into()));
@ -297,7 +297,7 @@ where
}
#[cfg(feature = "a11y")]
/// Sets the label of the [`Button`] using another widget.
/// Sets the label of the [`Toggler`] using another widget.
pub fn labeled_by_widget(
mut self,
label: &dyn iced_accessibility::Labels,