Skip to main content

FIELD_STATE_CLASSES

Constant FIELD_STATE_CLASSES 

Source
pub const FIELD_STATE_CLASSES: &[&str];
Expand description

The state classes a field carries, which take no prefix.

chosen and latched’s convention, stated in crate::vocabulary::vocabulary: a state qualifies a prefixed component (.mk-form-group.has-error) rather than standing on its own, so a prefix moves the thing and not its state.

has-error marks the group and visible marks the message, which is makeover_layout::Field::invalid’s own reasoning: a renderer with no descendant selectors cannot find the group from the message, so both are told.