Skip to content

Commit 991427e

Browse files
committed
Bug 1805491 - add statuses to existing components r=tgiles,mstriemer
Let me know if you think some of these components should have different statuses. I'm also not demonstrating our ability to override the default status descriptions, but we can do that if we want to. Differential Revision: https://phabricator.services.mozilla.com/D175932 UltraBlame original commit: 2f83b33d3258908f362320825b02ba0c227056c9
1 parent 431af2c commit 991427e

File tree

9 files changed

+40
-0
lines changed

9 files changed

+40
-0
lines changed

browser/components/storybook/stories/button.stories.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default {
88
title: "UI Widgets/Button",
99
component: "button",
1010
parameters: {
11+
status: "stable",
1112
fluent: `
1213
button-regular = Regular
1314
button-primary = Primary

browser/components/storybook/stories/message-bar.stories.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default {
2525
},
2626
},
2727
parameters: {
28+
status: "stable",
2829
fluent: `
2930
message-bar-text = A very expressive and slightly whimsical message goes here.
3031
message-bar-button = Click me, please!

browser/components/storybook/stories/named-deck.stories.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default {
1111
title: "UI Widgets/Named Deck",
1212
component: "named-deck",
1313
parameters: {
14+
status: "stable",
1415
fluent: `
1516
named-deck-tab-one = Tab 1
1617
named-deck-tab-two = Tab 2

browser/components/storybook/stories/panel-list.stories.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default {
1010
title: "UI Widgets/Panel Menu",
1111
component: "panel-list",
1212
parameters: {
13+
status: "stable",
1314
actions: {
1415
handles: ["click"],
1516
},

toolkit/content/widgets/moz-button-group/moz-button-group.stories.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default {
1919
},
2020
},
2121
parameters: {
22+
status: "stable",
2223
fluent: `
2324
moz-button-group-p = The button group is below. Card for emphasis.
2425
moz-button-group-ok = OK
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# MozLabel
2+
3+
`moz-label` is an extension of the built-in `HTMLLabelElement` that provides accesskey styling and formatting as well as some click handling logic.
4+
5+
```html story
6+
<label is="moz-label" accesskey="c" for="check">
7+
This is a label with an accesskey:
8+
</label>
9+
<input id="check" type="checkbox" defaultChecked />
10+
```
11+
12+
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.
13+
14+
## Component status
15+
16+
At this time `moz-label` may not be suitable for general use in Firefox.
17+
18+
`moz-label` is currently only used in the `moz-toggle` custom element. There are no instances in Firefox where we set an accesskey on a toggle, so it is still largely untested in the wild.
19+
20+
Additionally there is at least [one outstanding bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1819469) related to accesskey handling in the shadow DOM.

toolkit/content/widgets/moz-label/moz-label.stories.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ export default {
1717
control: { type: "select" },
1818
},
1919
},
20+
parameters: {
21+
status: {
22+
type: "unstable",
23+
links: [
24+
{
25+
title: "Learn more",
26+
href: "?path=/docs/ui-widgets-label-readme--page#component-status",
27+
},
28+
],
29+
},
30+
},
2031
};
2132

2233
const Template = ({

toolkit/content/widgets/moz-support-link/moz-support-link.stories.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export default {
2727
},
2828
onClick: { action: "clicked" },
2929
},
30+
parameters: {
31+
status: "stable",
32+
},
3033
};
3134

3235
const Template = ({

toolkit/content/widgets/moz-toggle/moz-toggle.stories.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default {
1111
title: "Toggle",
1212
component: "moz-toggle",
1313
parameters: {
14+
status: "in-development",
1415
actions: {
1516
handles: ["toggle"],
1617
},

0 commit comments

Comments
 (0)