Skip to content

Commit 6ea9b22

Browse files
fix(review)
Co-authored-by: Vincent Prothais <[email protected]>
1 parent c948236 commit 6ea9b22

File tree

18 files changed

+28
-31
lines changed

18 files changed

+28
-31
lines changed

site/data/sidebar-components.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
pages:
55
- title: Accordion
66
draft: true
7-
- title: Alert
7+
- title: Alerts
88
draft: true
99
- title: Back to top
1010
draft: true
@@ -42,7 +42,7 @@
4242
draft: true
4343
- title: Input group
4444
draft: true
45-
- title: Link
45+
- title: Links
4646
category: Navigation
4747
- title: List group
4848
draft: true
@@ -100,5 +100,3 @@
100100
draft: true
101101
- title: Tooltip
102102
draft: true
103-
- title: Validation
104-
category: Control

site/data/sidebar-getting-started.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
draft: true
5252
- title: Component
5353
draft: true
54+
- title: Form validation
5455

5556
- title: About
5657
icon: globe2

site/src/assets/examples/cheatsheet/index.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export const body_class = 'bg-body-tertiary'
308308
<article class="my-3" id="overview">
309309
<div class="bd-heading sticky-xl-top align-self-start mt-5 mb-3 mt-xl-0 mb-xl-2">
310310
<h3>Overview</h3>
311-
<a class="d-flex align-items-center" href={getVersionedDocsPath('/components/validation')}>Documentation</a>
311+
<a class="d-flex align-items-center" href={getVersionedDocsPath('/foundation/form-validation')}>Documentation</a>
312312
</div>
313313

314314
<div>
@@ -366,7 +366,7 @@ export const body_class = 'bg-body-tertiary'
366366
<article class="my-3" id="disabled-forms">
367367
<div class="bd-heading sticky-xl-top align-self-start mt-5 mb-3 mt-xl-0 mb-xl-2">
368368
<h3>Disabled forms</h3>
369-
<a class="d-flex align-items-center" href={getVersionedDocsPath('/components/validation/#disabled-forms')}>Documentation</a>
369+
<a class="d-flex align-items-center" href={getVersionedDocsPath('/foundation/form-validation/#disabled-forms')}>Documentation</a>
370370
</div>
371371

372372
<div>
@@ -422,7 +422,7 @@ export const body_class = 'bg-body-tertiary'
422422
<article class="my-3" id="sizing">
423423
<div class="bd-heading sticky-xl-top align-self-start mt-5 mb-3 mt-xl-0 mb-xl-2">
424424
<h3>Sizing</h3>
425-
<a class="d-flex align-items-center" href="#">Documentation</a>
425+
<a class="d-flex align-items-center" href={getVersionedDocsPath('/components/text-input/#sizing')}>Documentation</a>
426426
</div>
427427

428428
<div>
@@ -517,7 +517,7 @@ export const body_class = 'bg-body-tertiary'
517517
<article class="my-3" id="validation">
518518
<div class="bd-heading sticky-xl-top align-self-start mt-5 mb-3 mt-xl-0 mb-xl-2">
519519
<h3>Validation</h3>
520-
<a class="d-flex align-items-center" href={getVersionedDocsPath('/components/validation')}>Documentation</a>
520+
<a class="d-flex align-items-center" href={getVersionedDocsPath('/foundation/form-validation')}>Documentation</a>
521521
</div>
522522

523523
<div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This standalone version is commonly used for building custom components and should not be used on its own. Remember to provide some sort of accessible name for assistive technologies (for instance, using `aria-labelledby`, a `.visually-hidden`, `aria-label` or a second label). See the [forms validation accessibility]([[docsref:/components/validation#accessibility]]) section for details.
1+
This standalone version is commonly used for building custom components and should not be used on its own. Remember to provide some sort of accessible name for assistive technologies (for instance, using `aria-labelledby`, a `.visually-hidden`, `aria-label` or a second label). See the [forms validation accessibility]([[docsref:/foundation/form-validation#accessibility]]) section for details.

site/src/content/docs/components.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import fs from 'node:fs'
1414

1515
<ul class="list-unstyled row gy-large row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-xl-4 row-cols-2xl-5">
1616
{
17-
getData('sidebar-components')
18-
.filter((group) => group.title === 'Components')[0]
17+
getData('sidebar-components')[0]
1918
.pages.map((page) => {
2019
if (page.category && !page.draft) {
2120
return (
@@ -57,9 +56,9 @@ import fs from 'node:fs'
5756
['Actions', 'Content display', 'Control', 'Data', 'Dialog', 'Indicator', 'Layout', 'Navigation', 'Visual assets'].map((element) => {
5857
return (
5958
<>
60-
{getData('sidebar-components').filter((group) => group.title === 'Components')[0].pages.filter((page) => page?.category === element).length > 0 && <h3>{element}</h3>}
59+
{getData('sidebar-components')[0].pages.filter((page) => page?.category === element).length > 0 && <h3>{element}</h3>}
6160
<ul class="list-unstyled row gy-large row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-xl-4 row-cols-2xl-5">
62-
{getData('sidebar-components').filter((group) => group.title === 'Components')[0].pages.filter((page) => page?.category === element).map((page) => {
61+
{getData('sidebar-components')[0].pages.filter((page) => page?.category === element).map((page) => {
6362
return (
6463
<li class="col">
6564
<div class="card position-relative h-100">
File renamed without changes.

site/src/content/docs/components/buttons.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ Make buttons look inactive by adding the `disabled` boolean attribute to any `<b
297297
Disabled buttons using the `<a>` element behave a bit different:
298298

299299
- Disabled buttons using `<a>` must include the `aria-disabled="true"` attribute to indicate the state of the element to assistive technologies and to make it visually appear disabled.
300-
- Disabled buttons using `<a>` *should not* include the `href` attribute. In case you need to keep the `href`, please refer to [disabled link accessibility warning]([[docsref:/components/link#disabled-link-accessibility-warning]]).
300+
- Disabled buttons using `<a>` *should not* include the `href` attribute. In case you need to keep the `href`, please refer to [disabled link accessibility warning]([[docsref:/components/links#disabled-link-accessibility-warning]]).
301301
- Some future-friendly styles are included to disable all `pointer-events` on anchor buttons.
302302

303303
<Example class="p-none bd-btn-example" code={`<div class="p-large d-flex gap-xsmall flex-wrap">

site/src/content/docs/components/checkbox.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ To create a read only checkbox, the input should be replaced by a `span` element
440440

441441
<Callout type="info" name="input-invalid" />
442442

443-
To display an invalid checkbox, add `.is-invalid` to a `.control-item-indicator`. An error icon will be automatically shown, if there is a decorative icon specified it will be hidden. Please take a look at our [Validation page to learn more]([[docsref:/components/validation]]).
443+
To display an invalid checkbox, add `.is-invalid` to a `.control-item-indicator`. An error icon will be automatically shown, if there is a decorative icon specified it will be hidden. Please take a look at our [Validation page to learn more]([[docsref:/foundation/form-validation]]).
444444

445445
<Example buttonLabel="invalid checkboxes" class="bd-example-indeterminate" addStackblitzJs code={`<fieldset class="control-items-list">
446446
<div class="checkbox-item control-item-divider">

site/src/content/docs/components/link.mdx renamed to site/src/content/docs/components/links.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: Links
33
description: Use OUDS Web’s custom link styles for navigational elements, enabling users to move between pages, sections, or external resources.
44
aliases:
55
- "/docs/components/links/"
6-
- "/docs/components/link/"
76
toc: true
87
types:
98
- Link

site/src/content/docs/components/radio-button.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ To create a read only radio button, the input should be replaced by a `span` ele
424424

425425
<Callout type="info" name="input-invalid" />
426426

427-
To display an invalid radio button, add `.is-invalid` to a `.control-item-indicator`. Please take a look at our [Validation page to learn more]([[docsref:/components/validation]]).
427+
To display an invalid radio button, add `.is-invalid` to a `.control-item-indicator`. Please take a look at our [Validation page to learn more]([[docsref:/foundation/form-validation]]).
428428

429429
<Example buttonLabel="invalid radio buttons" code={`<fieldset class="control-items-list">
430430
<div class="radio-button-item control-item-divider">

0 commit comments

Comments
 (0)