pub fn option_class(selector: Selector) -> &'static strExpand description
The class an option of a selector carries, which is what the rules key off.
Named for the option and not for the group: [selector_rules] styles the
thing that gets picked, so Selector::Tabs is tab and not tabs. The
distinction is not pedantry. quasi-webview spelled these tabs, segmented
and option, put toggle on the wrapping element rather than on the
buttons inside it, and every described selector in that renderer came out
with no depth, no focus ring and no chosen state, while the toggle group got
a bevel meant for its buttons.
The chosen option additionally carries chosen, the same way a latched chip
carries latched. That name is this crate’s too; there is no reason for a
caller to spell it, and [selector_rules] is where it is written down.