Skip to content

Commit

Permalink
docs: update to use affix name and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikbacker committed Nov 19, 2024
1 parent b2bc5bf commit 7682aa0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/css/field.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
display: inline-flex; /* Using inline-flex to match native inline-block behaviour of <input> */
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;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/form/Field/Field.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<Canvas of={FieldStories.Adornments} />
<Canvas of={FieldStories.Affix} />

## Antall tegn

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/form/Textfield/Textfield.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<Canvas of={TextfieldStories.Adornments} />
<Canvas of={TextfieldStories.Affix} />

## Antall tegn

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const Rows: Story = {
},
};

export const Adornments: Story = {
export const Affix: Story = {
args: {
prefix: 'NOK',
suffix: 'pr. mnd',
Expand Down

0 comments on commit 7682aa0

Please sign in to comment.