From 8de915ededb0da22bd28002665a10b5dc9738e01 Mon Sep 17 00:00:00 2001 From: ysds Date: Tue, 6 Nov 2018 17:47:59 +0900 Subject: [PATCH] Docs: Improve accessibility of disabled link example (#27614) Add `tabindex="-1"` and `aria-disabled="true"` to disabled link --- site/docs/4.1/components/dropdowns.md | 2 +- site/docs/4.1/components/list-group.md | 4 ++-- site/docs/4.1/components/navbar.md | 12 +++++------ site/docs/4.1/components/navs.md | 30 +++++++++++++------------- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/site/docs/4.1/components/dropdowns.md b/site/docs/4.1/components/dropdowns.md index 5526313375..76c09d9ca0 100644 --- a/site/docs/4.1/components/dropdowns.md +++ b/site/docs/4.1/components/dropdowns.md @@ -587,7 +587,7 @@ Add `.disabled` to items in the dropdown to **style them as disabled**. {% capture example %} {% endcapture %} diff --git a/site/docs/4.1/components/list-group.md b/site/docs/4.1/components/list-group.md index a335473332..d3becaefbd 100644 --- a/site/docs/4.1/components/list-group.md +++ b/site/docs/4.1/components/list-group.md @@ -42,7 +42,7 @@ Add `.disabled` to a `.list-group-item` to make it _appear_ disabled. Note that {% capture example %}
@@ -139,7 +139,7 @@ Active states—with `.active`—to indicate the current page can be applied dir Pricing @@ -160,7 +160,7 @@ And because we use classes for our navs, you can avoid the list-based approach e Home (current) Features Pricing - Disabled + Disabled @@ -487,7 +487,7 @@ With no `.navbar-brand` shown in lowest breakpoint: Link @@ -517,7 +517,7 @@ With a brand name shown on the left and toggler on the right: Link @@ -547,7 +547,7 @@ With a toggler on the left and brand name on the right: Link diff --git a/site/docs/4.1/components/navs.md b/site/docs/4.1/components/navs.md index 86173e9a23..afa0fed923 100644 --- a/site/docs/4.1/components/navs.md +++ b/site/docs/4.1/components/navs.md @@ -29,7 +29,7 @@ The base `.nav` component does not include any `.active` state. The following ex Link {% endcapture %} @@ -42,7 +42,7 @@ Classes are used throughout, so your markup can be super flexible. Use ` {% endcapture %} @@ -89,7 +89,7 @@ Right-aligned with `.justify-content-end`: Link {% endcapture %} @@ -111,7 +111,7 @@ Stack your navigation by changing the flex item direction with the `.flex-column Link {% endcapture %} @@ -124,7 +124,7 @@ As always, vertical navigation is possible without ` {% endcapture %} @@ -167,7 +167,7 @@ Take that same HTML, but use `.nav-pills` instead: Link {% endcapture %} @@ -189,7 +189,7 @@ Force your `.nav`'s contents to extend the full available width one of two modif Link {% endcapture %} @@ -202,7 +202,7 @@ When using a ` {% endcapture %} {% include example.html content=example %} @@ -214,7 +214,7 @@ For equal-width elements, use `.nav-justified`. All horizontal space will be occ Active Longer nav link Link - Disabled + Disabled {% endcapture %} {% include example.html content=example %} @@ -226,7 +226,7 @@ Similar to the `.nav-fill` example using a ` {% endcapture %} @@ -240,7 +240,7 @@ If you need responsive nav variations, consider using a series of [flexbox utili Active Link Link - Disabled + Disabled {% endcapture %} {% include example.html content=example %} @@ -276,7 +276,7 @@ Add dropdown menus with a little extra HTML and the [dropdowns JavaScript plugin Link {% endcapture %} @@ -303,7 +303,7 @@ Add dropdown menus with a little extra HTML and the [dropdowns JavaScript plugin Link {% endcapture %}