From 001a4529bab9ab8ad2791fd49a030051bb5ed2e6 Mon Sep 17 00:00:00 2001 From: Dan Cormier Date: Thu, 12 Dec 2024 17:00:46 -0500 Subject: [PATCH] fix(pagination): support accessible markup (#1870) * fix(pagination): support accessible markup [STACKS-687](https://stackoverflow.atlassian.net/browse/STACKS-687) * Remove reference to Stacks 2.6.1 in markup deprecation notice * Update docs with review suggestions Addresses review: https://github.com/StackExchange/Stacks/pull/1870#pullrequestreview-2498703726 --- docs/product/components/pagination.html | 115 +++++++++++++++++- .../pagination/pagination.a11y.test.ts | 31 +++-- lib/components/pagination/pagination.less | 18 ++- .../pagination/pagination.visual.test.ts | 27 ++++ .../baseline/s-pagination-dark-legacy.ico | 3 + .../s-pagination-highcontrast-dark-legacy.ico | 3 + ...s-pagination-highcontrast-light-legacy.ico | 3 + .../baseline/s-pagination-light-legacy.ico | 3 + .../baseline/s-pagination-dark-legacy.ico | 3 + .../s-pagination-highcontrast-dark-legacy.ico | 3 + ...s-pagination-highcontrast-light-legacy.ico | 3 + .../baseline/s-pagination-light-legacy.ico | 3 + .../baseline/s-pagination-dark-legacy.ico | 3 + .../s-pagination-highcontrast-dark-legacy.ico | 3 + ...s-pagination-highcontrast-light-legacy.ico | 3 + .../baseline/s-pagination-light-legacy.ico | 3 + 16 files changed, 216 insertions(+), 11 deletions(-) create mode 100644 screenshots/Chromium/baseline/s-pagination-dark-legacy.ico create mode 100644 screenshots/Chromium/baseline/s-pagination-highcontrast-dark-legacy.ico create mode 100644 screenshots/Chromium/baseline/s-pagination-highcontrast-light-legacy.ico create mode 100644 screenshots/Chromium/baseline/s-pagination-light-legacy.ico create mode 100644 screenshots/Firefox/baseline/s-pagination-dark-legacy.ico create mode 100644 screenshots/Firefox/baseline/s-pagination-highcontrast-dark-legacy.ico create mode 100644 screenshots/Firefox/baseline/s-pagination-highcontrast-light-legacy.ico create mode 100644 screenshots/Firefox/baseline/s-pagination-light-legacy.ico create mode 100644 screenshots/Webkit/baseline/s-pagination-dark-legacy.ico create mode 100644 screenshots/Webkit/baseline/s-pagination-highcontrast-dark-legacy.ico create mode 100644 screenshots/Webkit/baseline/s-pagination-highcontrast-light-legacy.ico create mode 100644 screenshots/Webkit/baseline/s-pagination-light-legacy.ico diff --git a/docs/product/components/pagination.html b/docs/product/components/pagination.html index 26f8f343eb..ffd98c3695 100644 --- a/docs/product/components/pagination.html +++ b/docs/product/components/pagination.html @@ -31,6 +31,119 @@ {% header "h2", "Example" %}
{% highlight html %} + +{% endhighlight %} + +
+ + +
+ {% header "h2", "Legacy example" %} + + {% tip, "warning", "mb24" %} + Note:The below markup has been deprecated due to insufficient accessibility. Please use the new markup above. + {% endtip %} + +
+{% highlight html %} {% endhighlight %}
-
+