Skip to content

Commit 2b0d1c9

Browse files
fix(TextInput.stories): add note for type number (#2333)
* fix: StepGroup version number * fix: add textinput note
1 parent d42e3f5 commit 2b0d1c9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/blade/src/components/Input/TextInput/TextInput.stories.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,10 @@ TextInputTypeNumber.args = {
332332
placeholder: 'Enter any random number',
333333
};
334334

335-
// @ts-expect-error: Just another undocumented, untyped storybook property ;__;
336-
TextInputTypeNumber.story = {
337-
parameters: {
338-
docs: {
339-
storyDescription: `You might notice that type number allows you to enter other characters as well. That's because instead of setting type number internally, we prefer inputMode numeric. Checkout this article for the reasoning - <b><a href="https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/">Why the GOV.UK Design System team changed the input type for numbers</a></b> \n\nIf you have a usecase of only allowing number in field, you can handle that on validations end.`,
335+
TextInputTypeNumber.parameters = {
336+
docs: {
337+
description: {
338+
story: `You might notice that type number allows you to enter other characters as well. That's because instead of setting type number internally, we prefer inputMode numeric. Checkout this article for the reasoning - <b><a href="https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/">Why the GOV.UK Design System team changed the input type for numbers</a></b> \n\nIf you have a usecase of only allowing number in field, you can handle that on validations end.`,
340339
},
341340
},
342341
};

0 commit comments

Comments
 (0)