value
A progress bar draws its progress rather than writing it, so nothing in its anatomy stands for the value — which prop carries it is declared here. prop names the prop carrying the value, and a generated component binds it to the value attribute the resolved role calls for — aria-valuenow on a progress bar, for instance.
| File | config/conventions/specs.yaml |
| Path | value |
| Type | block (prop, indeterminate) |
| Default | absent |
Example
value: prop: percent indeterminate: isIndeterminateAn element beats a prop
Where a value part role resolves, it wins, for the same reason a
label element beats an accessible-name prop.
indeterminate
A boolean prop that forces the indeterminate presentation regardless of the value. Resolution runs in order:
indeterminateis true — the value is suppressed- otherwise
propresolves — the determinate form is emitted - otherwise the indeterminate form is emitted, with a warning
Distinction from state concepts
The state concepts are a governed vocabulary, each resolving to a canonical selector,
and indeterminate there already means a checkbox’s mixed state — :indeterminate,
aria-checked="mixed".
A progress bar with no known value is a different fact wearing the same word. It
suppresses aria-valuenow and has no selector at all. Folding the two would widen a
governed vocabulary to absorb a prop binding, which is what the governance exists to
prevent — so it is modelled as what it actually is: a property of the value.
Further reading
- Accessibility props — the same idea for an accessible name.
- States — the governed state vocabulary.
valuerole — where an element represents the value instead.