From 7682aa093c008a85501199ff526838d6097fd382 Mon Sep 17 00:00:00 2001 From: eirikbacker Date: Tue, 19 Nov 2024 14:29:15 +0100 Subject: [PATCH] docs: update to use affix name and cleanup --- packages/css/field.css | 1 - packages/react/src/components/form/Field/Field.mdx | 2 +- packages/react/src/components/form/Textfield/Textfield.mdx | 2 +- .../react/src/components/form/Textfield/Textfield.stories.tsx | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/css/field.css b/packages/css/field.css index 622cc83fa0..ddd4897c19 100644 --- a/packages/css/field.css +++ b/packages/css/field.css @@ -80,7 +80,6 @@ display: inline-flex; /* Using inline-flex to match native inline-block behaviour of */ max-width: 100%; white-space: nowrap; - align-self: stretch; /* If ds-field is placed inside a flex container we need to fill width */ &:has([size]) { width: fit-content; diff --git a/packages/react/src/components/form/Field/Field.mdx b/packages/react/src/components/form/Field/Field.mdx index 54de73ae5a..63222fe7d3 100644 --- a/packages/react/src/components/form/Field/Field.mdx +++ b/packages/react/src/components/form/Field/Field.mdx @@ -14,7 +14,7 @@ Prefixer og suffixer er nyttige for å vise enheter, valuta eller andre typer in Du skal **ikke** bruke disse alene, siden skjermlesere ikke leser dem opp. Det er viktig at samme informasjon som vises i prefixet eller suffixet også er inkludert i ledeteksten. - + ## Antall tegn diff --git a/packages/react/src/components/form/Textfield/Textfield.mdx b/packages/react/src/components/form/Textfield/Textfield.mdx index 5547ea8830..a29b3bfd53 100644 --- a/packages/react/src/components/form/Textfield/Textfield.mdx +++ b/packages/react/src/components/form/Textfield/Textfield.mdx @@ -39,7 +39,7 @@ Prefixer og suffixer er nyttige for å vise enheter, valuta eller andre typer in Du skal **ikke** bruke disse alene, siden skjermlesere ikke leser dem opp. Det er viktig at samme informasjon som vises i prefixet eller suffixet også er inkludert i ledeteksten. - + ## Antall tegn diff --git a/packages/react/src/components/form/Textfield/Textfield.stories.tsx b/packages/react/src/components/form/Textfield/Textfield.stories.tsx index c44651c42a..2dca21aa39 100644 --- a/packages/react/src/components/form/Textfield/Textfield.stories.tsx +++ b/packages/react/src/components/form/Textfield/Textfield.stories.tsx @@ -66,7 +66,7 @@ export const Rows: Story = { }, }; -export const Adornments: Story = { +export const Affix: Story = { args: { prefix: 'NOK', suffix: 'pr. mnd',