Skip to content

Commit

Permalink
Merge branch 'issue-20'
Browse files Browse the repository at this point in the history
  • Loading branch information
isosphere committed Jul 24, 2023
2 parents 5e3793b + 09a4e4a commit f56007d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/yew-bootstrap/src/component/spinner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub struct SpinnerProps {
#[prop_or_default]
pub class: String,

/// Inner components
/// Inner components (visually hidden text)
#[prop_or_default]
pub children: Children,

Expand All @@ -41,11 +41,6 @@ pub struct SpinnerProps {
#[prop_or_default]
pub grow: bool,

/// Visually hidden text.
#[prop_or_default]
pub text: bool,


/// Small size style, default false
#[prop_or_default]
pub small: bool,
Expand Down Expand Up @@ -81,9 +76,8 @@ impl Component for Spinner {
html! {
<div class={classes} role="status">
<span class="visually-hidden">
{&props.text}
{ for props.children.iter() }
</span>
{ for props.children.iter() }
</div>
}
}
Expand Down

0 comments on commit f56007d

Please sign in to comment.