gbr/ui/theme/lustre/a11y

🚹 GBR: UI a11y module

Olá, aqui temos o módulo que ajuda a todos sem distinção!

O módulo de acessibilidade concentra as regras a11y (ARIA roles).

Values

pub fn aria_busy(is_loading: Bool) -> attribute.Attribute(msg)

Estado de carregamento.

pub fn aria_expanded(expand: Bool) -> attribute.Attribute(a)

Indica se o componente está expandido ou não, útil para sidebar menu.

pub fn aria_hidden() -> attribute.Attribute(msg)

Ocultar elementos visuais (ex: ícones decorativos) de leitores de tela.

pub fn aria_label(label: String) -> attribute.Attribute(msg)

Descrever elementos visuais (ex: imagens) em leitores de tela.

pub fn aria_labelledby(id: String) -> attribute.Attribute(a)

Descrever elementos usando ref. a outro elemento, exemplo <h2 id="..." />.

✨ Search Document