maciejhirsz / kobold

Easy declarative web interfaces.
https://docs.rs/kobold/
Mozilla Public License 2.0
385 stars 7 forks source link

Support ARIA #76

Closed Th3Whit3Wolf closed 1 year ago

Th3Whit3Wolf commented 1 year ago

It doesn't seem possible right now to add ARIA properties or states (i.e. aria-hidden="true" or aria-disabled="true").

maciejhirsz commented 1 year ago

Good catch! aria-hidden is not a Rust identifier since it has a - in it, so the parser is failing to consider it. I already have a parse schema for CSS class names, so it should be fairly straight-forward to add it for attributes.

maciejhirsz commented 1 year ago

Made a patch release for this: 0.7.1