Closed Kritzefitz closed 1 year ago
The documentation of yew_bootstrap::component::Spinner says that visually hidden text in the spinner should be added as follows:
yew_bootstrap::component::Spinner
<Spinner> {"hidden text"} </Spinner>
However, that example renders like this:
Looking at the source of the Spinner component
Spinner
html! { <div class={classes} role="status"> <span class="visually-hidden"> {&props.text} </span> { for props.children.iter() } </div> }
it looks like the text attribute is actually rendered where the hidden text would be supposed to be rendered. But since its type is bool it can't really be used to pass any useful state either.
text
bool
Thank you for your report @Kritzefitz , I can confirm your findings.
Please check out #21 for my proposed solution and let me know if it meets your needs.
Closed as completed! Fixed in 0.5.16.
The documentation of
yew_bootstrap::component::Spinner
says that visually hidden text in the spinner should be added as follows:However, that example renders like this:
Looking at the source of the
Spinner
componentit looks like the
text
attribute is actually rendered where the hidden text would be supposed to be rendered. But since its type isbool
it can't really be used to pass any useful state either.