trisquel-icecat/icecat/toolkit/content/widgets/moz-label
2025-10-06 02:35:48 -06:00
..
moz-label.css icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
moz-label.mjs icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
moz-label.stories.mjs icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
README.stories.md icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00

MozLabel

moz-label is an extension of the built-in HTMLLabelElement that provides accesskey styling and formatting as well as some click handling logic.

<label is="moz-label" accesskey="c" for="check" style={{ display: "inline-block" }}>
    This is a label with an accesskey:
</label>
<input id="check" type="checkbox" defaultChecked style={{ display: "inline-block" }} />

Accesskey underlining is enabled by default on Windows and Linux. It is also enabled in Storybook on Mac for demonstrative purposes, but is usually controlled by the ui.key.menuAccessKey preference.