Skip to main content

FIELD_CLASSES

Constant FIELD_CLASSES 

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

Every class this module can put in markup.

crate::facet::FACET_CLASSES’ obligation, and the module where it was missing longest. Most of these carry no rule and never will: .form-group, .form-label, .form-hint and .form-error are the apps’ own names, kept so adoption deletes goingson’s renderFormField rather than restyling anything, and phase A emits only what it can generate from the description. A class with no rule is invisible to crate::vocabulary::vocabulary, which reads the generated sheet, so the unruled half of a renderer’s vocabulary can only be written down.

What went wrong without it: an app checking its stylesheet against crate::vocabulary::names concluded that its live .form-group and .form-label rules matched nothing and were safe to delete. quasi-webview carried them in a MAKEOVER_UNLISTED constant of its own until 0.59.0 rather than let that happen.