Skip to content

Commit 13cce03

Browse files
mrosvikmimarzCopilot
authored
docs: small text improvements and updated numbers (#4920)
Co-authored-by: Michael Marszalek <mimarz@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent cab175d commit 13cce03

16 files changed

Lines changed: 113 additions & 79 deletions

File tree

apps/www/app/content/blog/en/designsystemet-web-pre2.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "@digdir/designsystemet-web prerelease 2"
3-
description: Second prerelease of the @digdir/designsystemet-web package, which provides the ability to use the Designsystemet without React.
3+
description: Second prerelease of the @digdir/designsystemet-web package, which provides the ability to use Designsystemet without React.
44
date: 2026-01-26
55
author: Designsystemet
66
imageSrc: /img/blog/ds-web-pre2.webp
@@ -83,4 +83,4 @@ If you discover errors, or have suggestions for improvements, you can create an
8383
'Tobias Barsnes',
8484
'Eirik Backer',
8585
]}
86-
/>
86+
/>

apps/www/app/content/components/button/en/overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ Buttons have an important function and are directly tied to an action. They give
9090

9191
### Button or link?
9292

93-
Use button when the user should perform an action. Use a [link](/en/components/link/overview) when the user is navigated to a new URL.
93+
Use a button when the user should perform an action. Use a [link](/en/components/docs/link/overview) when the user is navigated to a new URL.
9494

9595
#### Log in
9696

97-
Use button when “Log in” actually logs the user in, for example by submitting a login form. Use a [link](/en/components/link/overview) when “Log in” sends the user to a login page or external authentication service.
97+
Use a button when “Log in” actually logs the user in, for example by submitting a login form. Use a [link](/en/components/docs/link/overview) when “Log in” sends the user to a login page or external authentication service.
9898

9999
### Button placement
100100

apps/www/app/content/components/link/en/code.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Sizes are controlled with [data-size](/en/fundamentals/code/sizes) and colors wi
1818
```tsx
1919
import { Link } from '@digdir/designsystemet-react';
2020

21-
<Link href='https://designsystemet.no/'>Go to the design system</Link>;
21+
<Link href='https://designsystemet.no/'>Go to Designsystemet</Link>;
2222
```
2323

2424
<ReactComponentDocs />

apps/www/app/content/components/link/en/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ It is important not to overuse links, as this can make it harder for users to fi
4242
Links are used when the user is navigated to a new URL, while buttons are used when an action should be performed.
4343

4444
#### Log in
45-
Use a link when “Log in” sends the user to a login page or external authentication service. Use [button](/en/components/button/overview) when “Log in” actually logs the user in, for example by submitting a login form.
45+
Use a link when “Log in” sends the user to a login page or external authentication service. Use a [button](/en/components/docs/button/overview) when “Log in” actually logs the user in, for example by submitting a login form.
4646

4747
### Do not use an external link icon
4848

apps/www/app/content/components/tabs/en/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ search_terms: sections, navigation, panels
2121
### Icons only
2222
Tabs can be displayed with icons only for a more compact layout.
2323
Ensure that the icons are intuitive and have descriptive titles for screen readers.
24-
In the example below, we added a [tooltip](/en/components/docs/tooltip) to each tab to provide descriptive text for the icons.
24+
In the example below, we added a [tooltip](/en/components/docs/tooltip/overview) to each tab to provide descriptive text for the icons.
2525

2626
<Story story="IconsOnlyEn" />
2727

apps/www/app/content/components/tabs/no/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ search_terms: faner, seksjoner, seksjonar, navigasjon, panels
2121
### Kun ikoner
2222
Tabs kan vises med bare ikoner for et mer kompakt utseende.
2323
Sørg for at ikonene er intuitive og har beskrivende titler for skjermlesere.
24-
I eksempelet under har vi lagt en [tooltip](/no/components/docs/tooltip) til hver fane for å gi beskrivende tekst til ikonene.
24+
I eksempelet under har vi lagt en [tooltip](/no/components/docs/tooltip/overview) til hver fane for å gi beskrivende tekst til ikonene.
2525

2626
<Story story="IconsOnly" />
2727

apps/www/app/content/fundamentals/en/code/css.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Visually hides an element while still being accessible to screen readers.
7171
Preserves appearance, including background color, in print.
7272

7373
### `ds-focus` / `ds-focus--inset`
74-
Adds the design system focus ring around the element _when it gains focus with keyboard navigation_ (`:focus-visible`).
74+
Adds Designsystemet's focus ring around the element _when it gains focus with keyboard navigation_ (`:focus-visible`).
7575

7676
### `ds-focus--visible` / `ds-focus--visible--inset`
77-
Static "always-on" classes that add the design system focus ring around the element. <span className='ds-focus--visible'>Example.</span>
77+
Static "always-on" classes that add Designsystemet's focus ring around the element. <span className='ds-focus--visible'>Example.</span>

apps/www/app/content/fundamentals/en/code/react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,5 @@ import { Button } from '@digdir/designsystemet-react';
9191

9292
### Polyfill
9393

94-
The design system uses [popover](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/popover) in some components. This api is classified as [Baseline: Newly available](https://developer.mozilla.org/en-US/docs/Glossary/Baseline/Compatibility) as of April 2024, when Firefox was the last browser to add it. In some cases, you may find that users are locked to older browser versions for various reasons, and then it may be appropriate to add a polyfill to ensure that `popover` works for everyone.
94+
Designsystemet uses [popover](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/popover) in some components. This api is classified as [Baseline: Newly available](https://developer.mozilla.org/en-US/docs/Glossary/Baseline/Compatibility) as of April 2024, when Firefox was the last browser to add it. In some cases, you may find that users are locked to older browser versions for various reasons, and then it may be appropriate to add a polyfill to ensure that `popover` works for everyone.
9595
* [Popover-Polyfill](https://github.com/oddbird/popover-polyfill)

apps/www/app/content/fundamentals/en/code/setup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,5 +242,5 @@ body {
242242

243243
## Polyfill
244244

245-
The design system uses [popover](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/popover) in some components. This api is classified as [Baseline: Newly available](https://developer.mozilla.org/en-US/docs/Glossary/Baseline/Compatibility) as of April 2024, when Firefox was the last browser to add it. In some cases, you may find that users are locked to older browser versions for various reasons, and then it may be appropriate to add a polyfill to ensure that `popover` works for everyone.
245+
Designsystemet uses [popover](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/popover) in some components. This api is classified as [Baseline: Newly available](https://developer.mozilla.org/en-US/docs/Glossary/Baseline/Compatibility) as of April 2024, when Firefox was the last browser to add it. In some cases, you may find that users are locked to older browser versions for various reasons, and then it may be appropriate to add a polyfill to ensure that `popover` works for everyone.
246246
* [Popover-Polyfill](https://github.com/oddbird/popover-polyfill)

apps/www/app/content/fundamentals/no/code/css.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Skjuler et element visuelt mens det fortsatt er tilgjengelig for skjermlesere.
7070
Bevarer utseende, inkludert bakgrunnsfarge, i print.
7171

7272
### `ds-focus` / `ds-focus--inset`
73-
Legger til designsystemets fokusring rundt elementet _når det får fokus med tastaturnavigering_ (`:focus-visible`).
73+
Legger til Designsystemets fokusring rundt elementet _når det får fokus med tastaturnavigering_ (`:focus-visible`).
7474

7575
### `ds-focus--visible` / `ds-focus--visible--inset`
76-
Statiske "alltid på" klasser som legger til designsystemets fokusring rundt elementet. <span className='ds-focus--visible'>Eksempel.</span>
76+
Statiske "alltid på" klasser som legger til Designsystemets fokusring rundt elementet. <span className='ds-focus--visible'>Eksempel.</span>

0 commit comments

Comments
 (0)