From 4abeaec5061eca7364bb1779081ba05ad45d2f54 Mon Sep 17 00:00:00 2001 From: simurai Date: Fri, 3 Jan 2020 21:28:18 +0900 Subject: [PATCH] Use aria-disabled="true" --- docs/content/components/buttons.md | 18 +++++++++--------- docs/content/components/loaders.md | 2 +- docs/content/components/pagination.md | 8 ++++---- docs/content/principles/html.md | 6 ++---- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/docs/content/components/buttons.md b/docs/content/components/buttons.md index 34f4d38a..c6b92200 100644 --- a/docs/content/components/buttons.md +++ b/docs/content/components/buttons.md @@ -75,28 +75,28 @@ Use `.btn-large` with a type scale utility to transform the text to a bigger siz ## Disabled state -Disable ` -Disabled button + +Disabled button ``` Similar styles are applied to primary, danger, and outline buttons: ```html live - -Disabled button + +Disabled button ``` ```html live - -Disabled button + +Disabled button ``` ```html live - -Disabled button + +Disabled button ``` ## Block button diff --git a/docs/content/components/loaders.md b/docs/content/components/loaders.md index e2f46243..bda8085a 100644 --- a/docs/content/components/loaders.md +++ b/docs/content/components/loaders.md @@ -22,5 +22,5 @@ It can also be used in combination with other components.

Loading

Loading
Loading
- + ``` diff --git a/docs/content/components/pagination.md b/docs/content/components/pagination.md index 87f1a1e9..7d233f47 100644 --- a/docs/content/components/pagination.md +++ b/docs/content/components/pagination.md @@ -10,12 +10,12 @@ Use the pagination component to apply button styles to a connected set of links ## Previous/next pagination -You can make a very simple pagination container with just the Previous and Next buttons. Add the class `disabled` to the `Previous` button if there isn't a preceding page, or to the `Next` button if there isn't a succeeding page. +You can make a very simple pagination container with just the Previous and Next buttons. Add the `aria-disabled="true"` attribute to the `Previous` button if there isn't a preceding page, or to the `Next` button if there isn't a succeeding page. ```html live @@ -25,7 +25,7 @@ You can make a very simple pagination container with just the Previous and Next For pagination across multiple pages, make sure it's clear to the user where they are in a set of pages. -To do this, add anchor links to the `pagination` element. Previous and Next buttons should always be present. Add the class `disabled` to the Previous button if you're on the first page. Apply the class `current` to the current numbered page. +To do this, add anchor links to the `pagination` element. Previous and Next buttons should always be present. Add the `aria-disabled="true"` attribute to the Previous button if you're on the first page. Apply the class `current` to the current numbered page. As always, make sure to include the appropriate `aria` attributes to make the element accessible. @@ -36,7 +36,7 @@ As always, make sure to include the appropriate `aria` attributes to make the el ```html live