From 4bb1946ad10d25a504c2fe3dbfa0875fed096af9 Mon Sep 17 00:00:00 2001 From: Alexander Flenniken Date: Mon, 11 Dec 2023 13:02:30 -0500 Subject: [PATCH] Infrastructure: Use aria-practices repo as source for images, patterns.html, and practices.html (pull #2869) Resolve issue 2702 by moving HTML content and images from the wai-aria-practices repo into the aria-practices repo. This includes HTML content for the patterns.html page, the practices.html page, and images across all patterns and examples. A complementary change is made to the build process in the wai-aria-practices repo via PR w3c/wai-aria-practices#280. --- .link-checker.js | 5 +- content/images/pattern-accordion.svg | 1 + content/images/pattern-alert.svg | 1 + content/images/pattern-alertdialog.svg | 1 + content/images/pattern-breadcrumb.svg | 1 + content/images/pattern-button.svg | 1 + content/images/pattern-carousel.svg | 1 + content/images/pattern-checkbox.svg | 1 + content/images/pattern-combobox.svg | 1 + content/images/pattern-dialog-modal.svg | 1 + content/images/pattern-disclosure.svg | 1 + content/images/pattern-feed.svg | 1 + content/images/pattern-grid.svg | 1 + content/images/pattern-landmarks.svg | 1 + content/images/pattern-link.svg | 1 + content/images/pattern-listbox.svg | 1 + content/images/pattern-menu-button.svg | 1 + content/images/pattern-menubar.svg | 1 + content/images/pattern-meter.svg | 1 + content/images/pattern-radio.svg | 1 + content/images/pattern-slider-multithumb.svg | 1 + content/images/pattern-slider.svg | 1 + content/images/pattern-spinbutton.svg | 1 + content/images/pattern-switch.svg | 1 + content/images/pattern-table.svg | 1 + content/images/pattern-tabs.svg | 1 + content/images/pattern-toolbar.svg | 1 + content/images/pattern-tooltip.svg | 1 + content/images/pattern-treegrid.svg | 1 + content/images/pattern-treeview.svg | 1 + content/images/pattern-windowsplitter.svg | 1 + content/images/read-this-first.svg | 1 + .../patterns/accordion/accordion-pattern.html | 1 + .../accordion/examples/accordion.html | 1 + content/patterns/alert/alert-pattern.html | 1 + content/patterns/alert/examples/alert.html | 1 + .../alertdialog/alertdialog-pattern.html | 1 + .../alertdialog/examples/alertdialog.html | 1 + .../breadcrumb/breadcrumb-pattern.html | 1 + .../breadcrumb/examples/breadcrumb.html | 1 + content/patterns/button/button-pattern.html | 1 + content/patterns/button/examples/button.html | 1 + .../patterns/button/examples/button_idl.html | 1 + .../patterns/carousel/carousel-pattern.html | 1 + .../examples/carousel-1-prev-next.html | 1 + .../carousel/examples/carousel-2-tablist.html | 1 + .../patterns/checkbox/checkbox-pattern.html | 1 + .../checkbox/examples/checkbox-mixed.html | 1 + .../patterns/checkbox/examples/checkbox.html | 1 + .../patterns/combobox/combobox-pattern.html | 1 + .../examples/combobox-autocomplete-both.html | 1 + .../examples/combobox-autocomplete-list.html | 1 + .../examples/combobox-autocomplete-none.html | 1 + .../examples/combobox-datepicker.html | 1 + .../examples/combobox-select-only.html | 1 + .../combobox/examples/grid-combo.html | 1 + .../dialog-modal/dialog-modal-pattern.html | 1 + .../examples/datepicker-dialog.html | 1 + .../dialog-modal/examples/dialog.html | 1 + .../disclosure/disclosure-pattern.html | 1 + .../disclosure/examples/disclosure-faq.html | 1 + .../disclosure-image-description.html | 1 + .../disclosure-navigation-hybrid.html | 2 +- .../examples/disclosure-navigation.html | 1 + content/patterns/feed/examples/feed.html | 1 + content/patterns/feed/feed-pattern.html | 1 + .../grid/examples/advanced-data-grid.html | 1 + .../patterns/grid/examples/data-grids.html | 1 + .../patterns/grid/examples/layout-grids.html | 1 + content/patterns/grid/grid-pattern.html | 1 + .../patterns/landmarks/landmarks-pattern.html | 1 + content/patterns/link/examples/link.html | 1 + content/patterns/link/link-pattern.html | 1 + .../listbox/examples/listbox-collapsible.html | 1 + .../listbox/examples/listbox-grouped.html | 1 + .../examples/listbox-rearrangeable.html | 1 + .../listbox/examples/listbox-scrollable.html | 1 + content/patterns/listbox/listbox-pattern.html | 1 + ...menu-button-actions-active-descendant.html | 1 + .../examples/menu-button-actions.html | 1 + .../examples/menu-button-links.html | 1 + .../menu-button/menu-button-pattern.html | 1 + .../menubar/examples/menubar-editor.html | 1 + .../menubar/examples/menubar-navigation.html | 1 + .../menubar/menu-and-menubar-pattern.html | 1 + content/patterns/meter/examples/meter.html | 1 + content/patterns/meter/meter-pattern.html | 1 + content/patterns/patterns.html | 386 +++++++++++++++++- .../examples/radio-activedescendant.html | 1 + .../patterns/radio/examples/radio-rating.html | 1 + content/patterns/radio/examples/radio.html | 1 + .../patterns/radio/radio-group-pattern.html | 1 + .../examples/slider-multithumb.html | 1 + .../slider-multithumb-pattern.html | 1 + .../slider/examples/slider-color-viewer.html | 1 + .../slider/examples/slider-rating.html | 1 + .../patterns/slider/examples/slider-seek.html | 1 + .../slider/examples/slider-temperature.html | 1 + content/patterns/slider/slider-pattern.html | 1 + .../examples/datepicker-spinbuttons.html | 1 + .../spinbutton/spinbutton-pattern.html | 1 + .../switch/examples/switch-button.html | 1 + .../switch/examples/switch-checkbox.html | 1 + content/patterns/switch/examples/switch.html | 1 + content/patterns/switch/switch-pattern.html | 1 + .../table/examples/sortable-table.html | 1 + content/patterns/table/examples/table.html | 1 + content/patterns/table/table-pattern.html | 1 + .../tabs/examples/tabs-automatic.html | 1 + .../patterns/tabs/examples/tabs-manual.html | 1 + content/patterns/tabs/tabs-pattern.html | 1 + .../patterns/toolbar/examples/toolbar.html | 1 + content/patterns/toolbar/toolbar-pattern.html | 1 + content/patterns/tooltip/tooltip-pattern.html | 1 + .../treegrid/examples/treegrid-1.html | 1 + .../patterns/treegrid/treegrid-pattern.html | 1 + .../treeview/examples/treeview-1a.html | 1 + .../treeview/examples/treeview-1b.html | 1 + .../examples/treeview-navigation.html | 1 + .../patterns/treeview/treeview-pattern.html | 1 + .../windowsplitter-pattern.html | 1 + content/practices/practices.html | 107 ++++- .../templates/example-usage-warning.html | 6 +- content/shared/templates/read-this-first.html | 20 + 124 files changed, 621 insertions(+), 23 deletions(-) create mode 100644 content/images/pattern-accordion.svg create mode 100644 content/images/pattern-alert.svg create mode 100644 content/images/pattern-alertdialog.svg create mode 100644 content/images/pattern-breadcrumb.svg create mode 100644 content/images/pattern-button.svg create mode 100644 content/images/pattern-carousel.svg create mode 100644 content/images/pattern-checkbox.svg create mode 100644 content/images/pattern-combobox.svg create mode 100644 content/images/pattern-dialog-modal.svg create mode 100644 content/images/pattern-disclosure.svg create mode 100644 content/images/pattern-feed.svg create mode 100644 content/images/pattern-grid.svg create mode 100644 content/images/pattern-landmarks.svg create mode 100644 content/images/pattern-link.svg create mode 100644 content/images/pattern-listbox.svg create mode 100644 content/images/pattern-menu-button.svg create mode 100644 content/images/pattern-menubar.svg create mode 100644 content/images/pattern-meter.svg create mode 100644 content/images/pattern-radio.svg create mode 100644 content/images/pattern-slider-multithumb.svg create mode 100644 content/images/pattern-slider.svg create mode 100644 content/images/pattern-spinbutton.svg create mode 100644 content/images/pattern-switch.svg create mode 100644 content/images/pattern-table.svg create mode 100644 content/images/pattern-tabs.svg create mode 100644 content/images/pattern-toolbar.svg create mode 100644 content/images/pattern-tooltip.svg create mode 100644 content/images/pattern-treegrid.svg create mode 100644 content/images/pattern-treeview.svg create mode 100644 content/images/pattern-windowsplitter.svg create mode 100644 content/images/read-this-first.svg create mode 100644 content/shared/templates/read-this-first.html diff --git a/.link-checker.js b/.link-checker.js index 2377e0ef6a..4655e412ce 100644 --- a/.link-checker.js +++ b/.link-checker.js @@ -1,5 +1,8 @@ module.exports = { - filesToIgnore: ['content/shared/templates/example-usage-warning.html'], + filesToIgnore: [ + // For example: + // 'content/shared/templates/example-usage-warning.html', + ], excludedLinks: { 'content/patterns/menubar/examples/menubar-navigation.html': [ '#ex1 [role=menuitem]', diff --git a/content/images/pattern-accordion.svg b/content/images/pattern-accordion.svg new file mode 100644 index 0000000000..4ee0b682b6 --- /dev/null +++ b/content/images/pattern-accordion.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-alert.svg b/content/images/pattern-alert.svg new file mode 100644 index 0000000000..68937594ad --- /dev/null +++ b/content/images/pattern-alert.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-alertdialog.svg b/content/images/pattern-alertdialog.svg new file mode 100644 index 0000000000..9e3ba6a1cc --- /dev/null +++ b/content/images/pattern-alertdialog.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-breadcrumb.svg b/content/images/pattern-breadcrumb.svg new file mode 100644 index 0000000000..0a92ff66bc --- /dev/null +++ b/content/images/pattern-breadcrumb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-button.svg b/content/images/pattern-button.svg new file mode 100644 index 0000000000..38df7318c0 --- /dev/null +++ b/content/images/pattern-button.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-carousel.svg b/content/images/pattern-carousel.svg new file mode 100644 index 0000000000..ead4504eba --- /dev/null +++ b/content/images/pattern-carousel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-checkbox.svg b/content/images/pattern-checkbox.svg new file mode 100644 index 0000000000..e4cdc2e5cd --- /dev/null +++ b/content/images/pattern-checkbox.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-combobox.svg b/content/images/pattern-combobox.svg new file mode 100644 index 0000000000..bb3f87adb2 --- /dev/null +++ b/content/images/pattern-combobox.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-dialog-modal.svg b/content/images/pattern-dialog-modal.svg new file mode 100644 index 0000000000..7fca36b9f8 --- /dev/null +++ b/content/images/pattern-dialog-modal.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-disclosure.svg b/content/images/pattern-disclosure.svg new file mode 100644 index 0000000000..f926d87cad --- /dev/null +++ b/content/images/pattern-disclosure.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-feed.svg b/content/images/pattern-feed.svg new file mode 100644 index 0000000000..c50ca4f408 --- /dev/null +++ b/content/images/pattern-feed.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-grid.svg b/content/images/pattern-grid.svg new file mode 100644 index 0000000000..4b3c38a720 --- /dev/null +++ b/content/images/pattern-grid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-landmarks.svg b/content/images/pattern-landmarks.svg new file mode 100644 index 0000000000..3a744dc689 --- /dev/null +++ b/content/images/pattern-landmarks.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-link.svg b/content/images/pattern-link.svg new file mode 100644 index 0000000000..26049b2472 --- /dev/null +++ b/content/images/pattern-link.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-listbox.svg b/content/images/pattern-listbox.svg new file mode 100644 index 0000000000..16561e92fa --- /dev/null +++ b/content/images/pattern-listbox.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-menu-button.svg b/content/images/pattern-menu-button.svg new file mode 100644 index 0000000000..1924f15f45 --- /dev/null +++ b/content/images/pattern-menu-button.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-menubar.svg b/content/images/pattern-menubar.svg new file mode 100644 index 0000000000..3a75d84688 --- /dev/null +++ b/content/images/pattern-menubar.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-meter.svg b/content/images/pattern-meter.svg new file mode 100644 index 0000000000..b508bb3e71 --- /dev/null +++ b/content/images/pattern-meter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-radio.svg b/content/images/pattern-radio.svg new file mode 100644 index 0000000000..3339928eb9 --- /dev/null +++ b/content/images/pattern-radio.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-slider-multithumb.svg b/content/images/pattern-slider-multithumb.svg new file mode 100644 index 0000000000..ad4c28a5de --- /dev/null +++ b/content/images/pattern-slider-multithumb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-slider.svg b/content/images/pattern-slider.svg new file mode 100644 index 0000000000..d63b1fa78b --- /dev/null +++ b/content/images/pattern-slider.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-spinbutton.svg b/content/images/pattern-spinbutton.svg new file mode 100644 index 0000000000..cd1c58f008 --- /dev/null +++ b/content/images/pattern-spinbutton.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-switch.svg b/content/images/pattern-switch.svg new file mode 100644 index 0000000000..f2d2c170a0 --- /dev/null +++ b/content/images/pattern-switch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-table.svg b/content/images/pattern-table.svg new file mode 100644 index 0000000000..c86d280200 --- /dev/null +++ b/content/images/pattern-table.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-tabs.svg b/content/images/pattern-tabs.svg new file mode 100644 index 0000000000..32653c370d --- /dev/null +++ b/content/images/pattern-tabs.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-toolbar.svg b/content/images/pattern-toolbar.svg new file mode 100644 index 0000000000..f19d72c3d8 --- /dev/null +++ b/content/images/pattern-toolbar.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-tooltip.svg b/content/images/pattern-tooltip.svg new file mode 100644 index 0000000000..92198927e1 --- /dev/null +++ b/content/images/pattern-tooltip.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-treegrid.svg b/content/images/pattern-treegrid.svg new file mode 100644 index 0000000000..7aa19e66b3 --- /dev/null +++ b/content/images/pattern-treegrid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-treeview.svg b/content/images/pattern-treeview.svg new file mode 100644 index 0000000000..24de583f0d --- /dev/null +++ b/content/images/pattern-treeview.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/pattern-windowsplitter.svg b/content/images/pattern-windowsplitter.svg new file mode 100644 index 0000000000..1527dff856 --- /dev/null +++ b/content/images/pattern-windowsplitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/images/read-this-first.svg b/content/images/read-this-first.svg new file mode 100644 index 0000000000..69323df5ed --- /dev/null +++ b/content/images/read-this-first.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/content/patterns/accordion/accordion-pattern.html b/content/patterns/accordion/accordion-pattern.html index efcadf98df..a141142e11 100644 --- a/content/patterns/accordion/accordion-pattern.html +++ b/content/patterns/accordion/accordion-pattern.html @@ -37,6 +37,7 @@

About This Pattern

+

Example

Accordion Example: demonstrates a form divided into three sections using an accordion to show one section at a time.

diff --git a/content/patterns/accordion/examples/accordion.html b/content/patterns/accordion/examples/accordion.html index f3b395eca0..1596083509 100644 --- a/content/patterns/accordion/examples/accordion.html +++ b/content/patterns/accordion/examples/accordion.html @@ -28,6 +28,7 @@

Accordion Example

About This Example

+

The below example section contains a simple personal information input form divided into 3 sections that demonstrates the Accordion Pattern.

diff --git a/content/patterns/alert/alert-pattern.html b/content/patterns/alert/alert-pattern.html index 5d319b4a93..81318f72c1 100644 --- a/content/patterns/alert/alert-pattern.html +++ b/content/patterns/alert/alert-pattern.html @@ -38,6 +38,7 @@

About This Pattern

+

Example

Alert Example

diff --git a/content/patterns/alert/examples/alert.html b/content/patterns/alert/examples/alert.html index 571623173b..2f4d78b9cb 100644 --- a/content/patterns/alert/examples/alert.html +++ b/content/patterns/alert/examples/alert.html @@ -29,6 +29,7 @@

Alert Example

About This Example

+

The below example demonstrates the Alert Pattern. Activating the Trigger Alert button causes a message to be inserted into the example alert element. diff --git a/content/patterns/alertdialog/alertdialog-pattern.html b/content/patterns/alertdialog/alertdialog-pattern.html index 88de2c6d36..0db8f9fb31 100644 --- a/content/patterns/alertdialog/alertdialog-pattern.html +++ b/content/patterns/alertdialog/alertdialog-pattern.html @@ -26,6 +26,7 @@

About This Pattern

+

Example

Alert Dialog Example: A confirmation prompt that demonstrates an alert dialog.

diff --git a/content/patterns/alertdialog/examples/alertdialog.html b/content/patterns/alertdialog/examples/alertdialog.html index 4a8921deac..ea35560665 100644 --- a/content/patterns/alertdialog/examples/alertdialog.html +++ b/content/patterns/alertdialog/examples/alertdialog.html @@ -30,6 +30,7 @@

Alert Dialog Example

About This Example

+

The below example of a confirmation prompt demonstrates the Alert Dialog Pattern. It also includes an example of the Alert Pattern to make comparing the experiences provided by the two patterns easy. diff --git a/content/patterns/breadcrumb/breadcrumb-pattern.html b/content/patterns/breadcrumb/breadcrumb-pattern.html index 1af0accdfb..61967ffd9a 100644 --- a/content/patterns/breadcrumb/breadcrumb-pattern.html +++ b/content/patterns/breadcrumb/breadcrumb-pattern.html @@ -26,6 +26,7 @@

About This Pattern

+

Example

Breadcrumb design pattern example

diff --git a/content/patterns/breadcrumb/examples/breadcrumb.html b/content/patterns/breadcrumb/examples/breadcrumb.html index 25db1e906f..df73832aee 100644 --- a/content/patterns/breadcrumb/examples/breadcrumb.html +++ b/content/patterns/breadcrumb/examples/breadcrumb.html @@ -28,6 +28,7 @@

Breadcrumb Example

About This Example

+

The following example demonstrates the Breadcrumb Pattern.

diff --git a/content/patterns/button/button-pattern.html b/content/patterns/button/button-pattern.html index a4716b3dfd..fdc991caca 100644 --- a/content/patterns/button/button-pattern.html +++ b/content/patterns/button/button-pattern.html @@ -47,6 +47,7 @@

Note

+

Examples