1
0
Fork 0
firefox/toolkit/content/widgets/moz-label
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00
..
moz-label.css Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
moz-label.mjs Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
moz-label.stories.mjs Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
README.stories.md Adding upstream version 140.0. 2025-06-25 09:37:52 +02: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.