From 8a3e6729b3569f0bfe9185388837a84bd3019f69 Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Thu, 15 Feb 2024 17:00:59 +0100 Subject: [PATCH] Docs(web, web-react, web-twig): Fix the `aria-controls` ID references in examples --- .../docs/stories/examples/ModalStacked.stories.tsx | 2 +- .../examples/ModalWithAccordion.stories.tsx | 2 +- .../stories/examples/ModalWithCollapse.stories.tsx | 2 +- .../stories/examples/ModalWithDropdown.stories.tsx | 2 +- .../stories/examples/ModalWithForm.stories.tsx | 2 +- .../examples/ModalWithScrollView.stories.tsx | 2 +- packages/web-react/src/components/Modal/README.md | 4 ++-- .../src/components/Modal/demo/ModalStacked.tsx | 2 +- .../web/src/scss/components/Dropdown/README.md | 12 ++++++------ .../web/src/scss/components/Dropdown/index.html | 14 +++++++------- packages/web/src/scss/components/Item/README.md | 2 +- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/packages/web-react/docs/stories/examples/ModalStacked.stories.tsx b/packages/web-react/docs/stories/examples/ModalStacked.stories.tsx index 3662a9113a..7a1d4a6038 100644 --- a/packages/web-react/docs/stories/examples/ModalStacked.stories.tsx +++ b/packages/web-react/docs/stories/examples/ModalStacked.stories.tsx @@ -21,7 +21,7 @@ export const ModalStacked = () => { return ( <> - diff --git a/packages/web-react/docs/stories/examples/ModalWithAccordion.stories.tsx b/packages/web-react/docs/stories/examples/ModalWithAccordion.stories.tsx index ef175116af..93c173ffca 100644 --- a/packages/web-react/docs/stories/examples/ModalWithAccordion.stories.tsx +++ b/packages/web-react/docs/stories/examples/ModalWithAccordion.stories.tsx @@ -28,7 +28,7 @@ export const ModalWithAccordion = () => { return ( <> - diff --git a/packages/web-react/docs/stories/examples/ModalWithCollapse.stories.tsx b/packages/web-react/docs/stories/examples/ModalWithCollapse.stories.tsx index c0ae84ecdf..e7d77a5ef5 100644 --- a/packages/web-react/docs/stories/examples/ModalWithCollapse.stories.tsx +++ b/packages/web-react/docs/stories/examples/ModalWithCollapse.stories.tsx @@ -18,7 +18,7 @@ export const ModalWithCollapse = () => { return ( <> - diff --git a/packages/web-react/docs/stories/examples/ModalWithDropdown.stories.tsx b/packages/web-react/docs/stories/examples/ModalWithDropdown.stories.tsx index 9655025f75..ce599c21de 100644 --- a/packages/web-react/docs/stories/examples/ModalWithDropdown.stories.tsx +++ b/packages/web-react/docs/stories/examples/ModalWithDropdown.stories.tsx @@ -23,7 +23,7 @@ export const ModalWithDropdown = () => { return ( <> - diff --git a/packages/web-react/docs/stories/examples/ModalWithForm.stories.tsx b/packages/web-react/docs/stories/examples/ModalWithForm.stories.tsx index cc76aa4d62..fcd40752fd 100644 --- a/packages/web-react/docs/stories/examples/ModalWithForm.stories.tsx +++ b/packages/web-react/docs/stories/examples/ModalWithForm.stories.tsx @@ -30,7 +30,7 @@ export const ModalWithForm = () => { return ( <> - diff --git a/packages/web-react/docs/stories/examples/ModalWithScrollView.stories.tsx b/packages/web-react/docs/stories/examples/ModalWithScrollView.stories.tsx index efd2b02a51..8923916642 100644 --- a/packages/web-react/docs/stories/examples/ModalWithScrollView.stories.tsx +++ b/packages/web-react/docs/stories/examples/ModalWithScrollView.stories.tsx @@ -16,7 +16,7 @@ export const ModalWithScrollView = () => { return ( <> - diff --git a/packages/web-react/src/components/Modal/README.md b/packages/web-react/src/components/Modal/README.md index 5ba6651b2d..d698bacf02 100644 --- a/packages/web-react/src/components/Modal/README.md +++ b/packages/web-react/src/components/Modal/README.md @@ -280,7 +280,7 @@ const [isOpen, setOpen] = useState(false); const toggleModal = () => setOpen(!isOpen); const handleClose = () => setOpen(false); -; ``` @@ -355,7 +355,7 @@ const handleClose = () => setOpen(false); diff --git a/packages/web/src/scss/components/Dropdown/README.md b/packages/web/src/scss/components/Dropdown/README.md index 52dc2f1240..b07ec5e142 100644 --- a/packages/web/src/scss/components/Dropdown/README.md +++ b/packages/web/src/scss/components/Dropdown/README.md @@ -9,7 +9,7 @@ data-spirit-target="#dropdownDefault" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownDefault" + aria-controls="dropdownDefault" > Button as anchor @@ -51,7 +51,7 @@ data-spirit-target="#dropdownTopRight" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownTopRight" + aria-controls="dropdownTopRight" > Button as anchor @@ -93,7 +93,7 @@ data-spirit-target="#dropdownDisabledAutoClose" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownDisabledAutoClose" + aria-controls="dropdownDisabledAutoClose" data-spirit-autoclose="true" > Button as anchor @@ -136,7 +136,7 @@ data-spirit-target="#dropdownFullWidthModeAll" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownFullWidthModeAll" + aria-controls="dropdownFullWidthModeAll" > Finibus quis imperdiet, semper imperdiet aliquam @@ -178,7 +178,7 @@ data-spirit-target="#dropdownFullWidthModeMobile" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownFullWidthModeMobile" + aria-controls="dropdownFullWidthModeMobile" > Finibus quis imperdiet, semper imperdiet aliquam @@ -220,7 +220,7 @@ data-spirit-target="#dropdownDefault" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownDefault" + aria-controls="dropdownDefault" > Button as anchor diff --git a/packages/web/src/scss/components/Dropdown/index.html b/packages/web/src/scss/components/Dropdown/index.html index f57c51ba01..73730d3481 100644 --- a/packages/web/src/scss/components/Dropdown/index.html +++ b/packages/web/src/scss/components/Dropdown/index.html @@ -123,7 +123,7 @@

Placements

data-spirit-autoclose="false" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdown_placements_example" + aria-controls="dropdown_placements_example" > bottom-left @@ -174,8 +174,8 @@

Various items

data-spirit-target="#dropdownVariousItems" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownVariousItems" data-spirit-autoclose="true" + aria-controls="dropdownVariousItems" > Button as anchor @@ -219,7 +219,7 @@

Usage with disabled auto close

data-spirit-target="#dropdownDisabledAutoClose" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownDisabledAutoClose" + aria-controls="dropdownDisabledAutoClose" data-spirit-autoclose="true" > Button as anchor @@ -275,7 +275,7 @@

Longer content

data-spirit-target="#dropdownLonger" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownLonger" + aria-controls="dropdownLonger" > Button as anchor @@ -330,7 +330,7 @@

Full-width mode 'all'

data-spirit-target="#dropdownFullWidthModeAll" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownFullWidthModeAll" + aria-controls="dropdownFullWidthModeAll" > Finibus quis imperdiet, semper imperdiet aliquam @@ -385,7 +385,7 @@

Full-width mode 'mobile-only'

data-spirit-target="#dropdownFullWidthModeMobile" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownFullWidthModeMobile" + aria-controls="dropdownFullWidthModeMobile" > Finibus quis imperdiet, semper imperdiet aliquam @@ -445,7 +445,7 @@

Feature Flag: Enhanced Shadow

data-spirit-target="#dropdownEnhancedShadow" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownEnhancedShadow" + aria-controls="dropdownEnhancedShadow" > Finibus quis imperdiet, semper imperdiet aliquam diff --git a/packages/web/src/scss/components/Item/README.md b/packages/web/src/scss/components/Item/README.md index ac7e1e7976..ecd95582af 100644 --- a/packages/web/src/scss/components/Item/README.md +++ b/packages/web/src/scss/components/Item/README.md @@ -113,7 +113,7 @@ Usage in [Dropdown] component: data-spirit-target="#dropdownDefault" class="Button Button--primary Button--medium" aria-expanded="false" - aria-controls="#dropdownDefault" + aria-controls="dropdownDefault" > Button as anchor