You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {string} target - Where to display the linked `href` URL for a link button. Common options include `_blank` to open in a new tab.
66
66
* @param {boolean} trailingIcon - Whether to render the icon at the inline end of the label rather than the inline start.
67
67
* @param {boolean} hasIcon - Whether to display the icon or not.
68
+
* @param {string} softDisabled - Whether or not the button is "soft-disabled" (disabled but still focusable). https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
68
69
* @param {string} type - The default behavior of the button. May be "text", "reset", or "submit" (default).
69
70
* @param {string} value - The value added to a form with the button's name when the button submits a form.
* @param {string} target - Where to display the linked `href` URL for a link button. Common options include `_blank` to open in a new tab.
93
94
* @param {boolean} trailingIcon - Whether to render the icon at the inline end of the label rather than the inline start.
94
95
* @param {boolean} hasIcon - Whether to display the icon or not.
96
+
* @param {string} softDisabled - Whether or not the button is "soft-disabled" (disabled but still focusable). https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
95
97
* @param {string} type - The default behavior of the button. May be "text", "reset", or "submit" (default).
96
98
* @param {string} value - The value added to a form with the button's name when the button submits a form.
* @param {string} target - Where to display the linked `href` URL for a link button. Common options include `_blank` to open in a new tab.
120
122
* @param {boolean} trailingIcon - Whether to render the icon at the inline end of the label rather than the inline start.
121
123
* @param {boolean} hasIcon - Whether to display the icon or not.
124
+
* @param {string} softDisabled - Whether or not the button is "soft-disabled" (disabled but still focusable). https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
122
125
* @param {string} type - The default behavior of the button. May be "text", "reset", or "submit" (default).
123
126
* @param {string} value - The value added to a form with the button's name when the button submits a form.
* @param {string} href - The URL that the link button points to.
147
150
* @param {string} target - Where to display the linked `href` URL for a link button. Common options include `_blank` to open in a new tab.
148
151
* @param {boolean} trailingIcon - Whether to render the icon at the inline end of the label rather than the inline start.
152
+
* @param {string} softDisabled - Whether or not the button is "soft-disabled" (disabled but still focusable). https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
149
153
* @param {boolean} hasIcon - Whether to display the icon or not.
150
154
* @param {string} type - The default behavior of the button. May be "text", "reset", or "submit" (default).
151
155
* @param {string} value - The value added to a form with the button's name when the button submits a form.
* @param {string} href - The URL that the link button points to.
174
178
* @param {string} target - Where to display the linked `href` URL for a link button. Common options include `_blank` to open in a new tab.
175
179
* @param {boolean} trailingIcon - Whether to render the icon at the inline end of the label rather than the inline start.
180
+
* @param {string} softDisabled - Whether or not the button is "soft-disabled" (disabled but still focusable). https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
176
181
* @param {boolean} hasIcon - Whether to display the icon or not.
177
182
* @param {string} type - The default behavior of the button. May be "text", "reset", or "submit" (default).
178
183
* @param {string} value - The value added to a form with the button's name when the button submits a form.
* @param {boolean} elevated - Whether or not the chip is elevated.
90
90
* @param {boolean} removable - Whether or not the chip is removable.
91
91
* @param {boolean} selected - Whether or not the chip is selected.
92
+
* @param {string} softDisabled - Whether or not the button is "soft-disabled" (disabled but still focusable). https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
92
93
* @param {boolean} disabled - Whether or not the chip is disabled. Disabled chips are not focusable, unless always-focusable is set.
93
-
* @param {boolean} alwaysFocusable - When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled. See https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
94
-
* @param {string} label - The label of the chip.
94
+
* @param {boolean} alwaysFocusable - (Deprecated: Use `softDisabled` instead of `alwaysFocusable` + `disabled`.) When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled. See https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
95
+
* @param {string} label - (Deprecated: Set text as content of the chip instead.) The label of the chip.
95
96
* @param {() => void} handleTrailingActionFocus - Callback for when the trailing action is focused.
96
97
* @param {string} ariaLabelRemove - Aria label for the remove button.
* @param {string} target - The target of the link.(e.g. _blank, _self, _parent, _top
113
114
* @param {boolean} removeOnly - Whether or not the chip is remove only.
114
115
* @param {boolean} selected - Whether or not the chip is selected.
116
+
* @param {string} softDisabled - Whether or not the button is "soft-disabled" (disabled but still focusable). https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
115
117
* @param {boolean} disabled - Whether or not the chip is disabled. Disabled chips are not focusable, unless always-focusable is set.
116
-
* @param {boolean} alwaysFocusable - When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled. See https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
117
-
* @param {string} label - The label of the chip.
118
+
* @param {boolean} alwaysFocusable - (Deprecated: Use `softDisabled` instead of `alwaysFocusable` + `disabled`.) When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled. See https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
119
+
* @param {string} label - (Deprecated: Set text as content of the chip instead.) The label of the chip.
118
120
* @param {() => void} handleTrailingActionFocus - Callback for when the trailing action is focused.
119
121
* @param {string} ariaLabelRemove - Aria label for the remove button.
* @param {string} href - The URL that the chip links to.
134
136
* @param {string} target - The target of the link.(e.g. _blank, _self, _parent, _top
135
137
* @param {boolean} disabled - Whether or not the chip is disabled. Disabled chips are not focusable, unless always-focusable is set.
136
-
* @param {boolean} alwaysFocusable - When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled. See https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
137
-
* @param {string} label - The label of the chip.
138
+
* @param {string} softDisabled - Whether or not the button is "soft-disabled" (disabled but still focusable). https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
139
+
* @param {boolean} alwaysFocusable - (Deprecated: Use `softDisabled` instead of `alwaysFocusable` + `disabled`.) When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled. See https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
140
+
* @param {string} label - (Deprecated: Set text as content of the chip instead.) The label of the chip.
* @param {string} href - The URL that the chip links to.
152
155
* @param {string} target - The target of the link.(e.g. _blank, _self, _parent, _top
153
156
* @param {boolean} disabled - Whether or not the chip is disabled. Disabled chips are not focusable, unless always-focusable is set.
154
-
* @param {boolean} alwaysFocusable - When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled. See https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
155
-
* @param {string} label - The label of the chip.
157
+
* @param {string} softDisabled - Whether or not the button is "soft-disabled" (disabled but still focusable). https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
158
+
* @param {boolean} alwaysFocusable - (Deprecated: Use `softDisabled` instead of `alwaysFocusable` + `disabled`.) When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled. See https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.
159
+
* @param {string} label - (Deprecated: Set text as content of the chip instead.) The label of the chip.
Copy file name to clipboardExpand all lines: src/components/core/chips/stories/md-assist-chip.stories.tsx
+3-17Lines changed: 3 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -35,17 +35,6 @@ const meta = {
35
35
description:
36
36
'Whether or not the chip is disabled. Disabled chips are not focusable, unless always-focusable is set.',
37
37
},
38
-
alwaysFocusable: {
39
-
control: 'boolean',
40
-
defaultValue: false,
41
-
description:
42
-
'When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled. See https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.',
43
-
},
44
-
label: {
45
-
control: 'text',
46
-
description: 'The label of the chip.',
47
-
defaultValue: '',
48
-
},
49
38
},
50
39
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
51
40
args: {},
@@ -56,18 +45,15 @@ type Story = StoryObj<typeof meta>
56
45
57
46
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
Copy file name to clipboardExpand all lines: src/components/core/chips/stories/md-filter-chip.stories.tsx
+4-14Lines changed: 4 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
importReactfrom'react'
2
+
1
3
importtype{Meta,StoryObj}from'@storybook/react'
2
4
import{MdFilterChip,MdFilterChipProps}from'..'
3
5
@@ -34,17 +36,6 @@ const meta = {
34
36
description:
35
37
'Whether or not the chip is disabled. Disabled chips are not focusable, unless always-focusable is set.',
36
38
},
37
-
alwaysFocusable: {
38
-
control: 'boolean',
39
-
defaultValue: false,
40
-
description:
41
-
'When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled. See https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.',
42
-
},
43
-
label: {
44
-
control: 'text',
45
-
description: 'The label of the chip.',
46
-
defaultValue: '',
47
-
},
48
39
ariaLabelRemove: {
49
40
control: 'text',
50
41
description: 'Aria label for the remove button.',
@@ -59,7 +50,6 @@ type Story = StoryObj<typeof meta>
59
50
60
51
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
Copy file name to clipboardExpand all lines: src/components/core/chips/stories/md-input-chip.stories.tsx
+2-13Lines changed: 2 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -50,15 +50,6 @@ const meta = {
50
50
description:
51
51
'When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled. See https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.',
52
52
},
53
-
label: {
54
-
control: 'text',
55
-
description: 'The label of the chip.',
56
-
defaultValue: '',
57
-
},
58
-
ariaLabelRemove: {
59
-
control: 'text',
60
-
description: 'Aria label for the remove button.',
61
-
},
62
53
},
63
54
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
64
55
args: {
@@ -71,21 +62,19 @@ type Story = StoryObj<typeof meta>
71
62
72
63
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
Copy file name to clipboardExpand all lines: src/components/core/chips/stories/md-suggestion-chip.stories.tsx
+2-14Lines changed: 2 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -34,17 +34,6 @@ const meta = {
34
34
description:
35
35
'Whether or not the chip is disabled. Disabled chips are not focusable, unless always-focusable is set.',
36
36
},
37
-
alwaysFocusable: {
38
-
control: 'boolean',
39
-
defaultValue: false,
40
-
description:
41
-
'When true, allow disabled chips to be focused with arrow keys. Add this when a chip needs increased visibility when disabled. See https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls for more guidance on when this is needed.',
42
-
},
43
-
label: {
44
-
control: 'text',
45
-
description: 'The label of the chip.',
46
-
defaultValue: '',
47
-
},
48
37
},
49
38
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
50
39
args: {},
@@ -55,7 +44,6 @@ type Story = StoryObj<typeof meta>
55
44
56
45
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
0 commit comments