Skip to content

Commit

Permalink
docs(a11y): fix pa11y errors + workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Nov 12, 2020
1 parent da8f1b6 commit 8145088
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/browserstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
- 'js/**'
branches:
- v5-dev
- "!dependabot/**"
pull_request:
paths:
- 'js/**'
branches:
- v5-dev
- "!dependabot/**"
env:
CI: true
NODE: 14.x
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/bundlewatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
push:
branches:
- v5-dev
- "!dependabot/**"
pull_request:
branches:
- v5-dev
- "!dependabot/**"
env:
CI: true
NODE: 14.x
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/css.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
push:
branches:
- v5-dev
- "!dependabot/**"
pull_request:
branches:
- v5-dev
- "!dependabot/**"
env:
CI: true
NODE: 14.x
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on:
- 'site/**'
branches:
- v5-dev
- "!dependabot/**"
pull_request:
paths:
- 'js/**'
- 'scss/**'
- 'site/**'
branches:
- v5-dev
- "!dependabot/**"
env:
CI: true
NODE: 14.x
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
- 'js/**'
branches:
- v5-dev
- "!dependabot/**"
pull_request:
paths:
- 'js/**'
branches:
- v5-dev
- "!dependabot/**"
env:
CI: true

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ on:
push:
branches:
- v5-dev
- "!dependabot/**"
pull_request:
branches:
- v5-dev
- "!dependabot/**"
env:
CI: true
NODE: 14.x
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/node-sass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ on:
- 'scss/**'
branches:
- v5-dev
- "!dependabot/**"
pull_request:
paths:
- 'scss/**'
branches:
- v5-dev

- "!dependabot/**"
env:
CI: true
NODE: 14.x
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
release:
types:
- published

jobs:
build:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/optimize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- '**.jpg'
- '**.png'
- '**.webp'

jobs:
build:
name: calibreapp/image-actions
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pa11y.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on:
- 'site/**'
branches:
- v5-dev
- "!dependabot/**"
pull_request:
paths:
- 'js/**'
- 'scss/**'
- 'site/**'
branches:
- v5-dev
- "!dependabot/**"
env:
CI: true
NODE: 14.x
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on:
- 'site/content/docs/**/guidelines'
branches:
- v5-dev
- "!dependabot/**"
pull_request:
paths:
- 'js/**'
- 'scss/**'
- 'site/content/docs/**/guidelines'
branches:
- v5-dev
- "!dependabot/**"
env:
CI: true
NODE: 14.x
Expand Down
2 changes: 1 addition & 1 deletion build/.pa11yci.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"runners": [
"axe"
],
"hideElements": ".bd-search, .active, [aria-current], [disabled], .modal, #TableOfContents, .bd-example nav, .text-primary, .chroma, .accordion > .card > .card-header .btn:not(.collapsed), [id*='tarteaucitron']",
"hideElements": ".bd-search, .active, [aria-current], [disabled], [readonly], .modal, #TableOfContents, .bd-example nav, .text-primary, .navbar-light .navbar-brand, .chroma, .accordion-button:not(.collapsed), [id*='tarteaucitron']",
"ignore": [
"heading-order"
]
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.0/components/toasts.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Alternatively, you can also add additional controls and components to toasts.
Building on the above example, you can create different toast color schemes with our [color utilities]({{< docsref "/utilities/colors" >}}). Here we've added `.bg-primary` and `.text-white` to the `.toast`, and then added `.text-white` to our close button. For a crisp edge, we remove the default border with `.border-0`.

{{< example class="bg-light" >}}
<div class="toast d-flex align-items-center text-white bg-primary border-0" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast d-flex align-items-center text-white border-0" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-body">
Hello, world! This is a toast message.
</div>
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.0/content/tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ Responsive tables make use of `overflow-y: hidden`, which clips off any content
Across every breakpoint, use `.table-responsive` for horizontally scrolling tables.

{{< example >}}
<div class="table-responsive">
<div class="table-responsive" tabindex="0">
<table class="table">
<thead>
<tr>
Expand Down
8 changes: 4 additions & 4 deletions site/content/docs/5.0/examples/grid/grid.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.themed-grid-col {
padding-top: .75rem;
padding-bottom: .75rem;
background-color: rgba(86, 61, 124, .15);
outline: 1px solid rgba(86, 61, 124, .2); /* Boosted mod */
background-color: #eee; /* Boosted mod */
outline: 1px solid #ddd; /* Boosted mod */
}

.themed-container {
padding-top: .75rem; /* Boosted mod */
padding-bottom: .75rem; /* Boosted mod */
margin-bottom: 1.5rem;
background-color: rgba(0, 123, 255, .15);
outline: 1px solid rgba(0, 123, 255, .2); /* Boosted mod */
background-color: #b5e8f7;
outline: 1px solid #4bb4e6; /* Boosted mod */
}
6 changes: 3 additions & 3 deletions site/content/docs/5.0/examples/masonry/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1>Bootstrap and Masonry</h1>

<p>Masonry is not included in Bootstrap. Add it by including the JavaScript plugin manually, or using a CDN like so:</p>

<pre><code>
<pre tabindex="0"><code>
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/masonry/4.2.2/masonry.pkgd.min.js&quot; integrity=&quot;sha384-GNFwBvfVxBkLMJpYMOABq3c+d3KnQxudP/mGPkzpZSTYykLBNsZEnG2D9G/X/+7D&quot; crossorigin=&quot;anonymous&quot; async&gt;&lt;/script&gt;
</code></pre>

Expand Down Expand Up @@ -54,12 +54,12 @@ <h5 class="card-title">Card title</h5>
</div>
</div>
<div class="col-sm-6 col-lg-4 mb-4">
<div class="card bg-primary text-white text-center p-3">
<div class="card bg-dark border-secondary text-center p-3">
<figure class="mb-0">
<blockquote class="blockquote">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.</p>
</blockquote>
<figcaption class="blockquote-footer mb-0 text-white">
<figcaption class="blockquote-footer mb-0 bg-dark">
Someone famous in <cite title="Source Title">Source Title</cite>
</figcaption>
</figure>
Expand Down
6 changes: 3 additions & 3 deletions site/content/docs/5.0/examples/navbars/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@
</nav>

<div class="container">
<nav class="navbar navbar-expand-lg navbar-light bg-light rounded" aria-label="Eleventh navbar example">
<nav class="navbar navbar-expand-lg navbar-light rounded" aria-label="Eleventh navbar example">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample09" aria-controls="navbarsExample09" aria-expanded="false" aria-label="Toggle navigation">
Expand Down Expand Up @@ -370,7 +370,7 @@
</div>
</nav>

<nav class="navbar navbar-expand-lg navbar-light bg-light rounded" aria-label="Twelfth navbar example">
<nav class="navbar navbar-expand-lg navbar-light rounded" aria-label="Twelfth navbar example">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample10" aria-controls="navbarsExample10" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand Down Expand Up @@ -401,7 +401,7 @@
</nav>

<div>
<div class="bg-light p-5 rounded">
<div class="p-5 rounded">
<div class="col-sm-8 mx-auto">
<h1>Navbar examples</h1>
<p>This example is a quick exercise to illustrate how the navbar and its contents work. Some navbars extend the width of the viewport, others are confined within a <code>.container</code>. For positioning of navbars, checkout the <a href="{{< docsref "/examples/navbar-static" >}}">top</a> and <a href="{{< docsref "/examples/navbar-fixed" >}}">fixed top</a> examples.</p>
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.0/examples/product/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h2 class="display-5">Another headline</h2>
</div>
<div class="bg-dark shadow-sm mx-auto" style="width: 80%; height: 300px; border-radius: 21px 21px 0 0;"></div>
</div>
<div class="bg-primary mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center text-white overflow-hidden">
<div class="bg-primary mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center overflow-hidden">
<div class="my-3 py-3">
<h2 class="display-5">Another headline</h2>
<p class="lead">And an even wittier subheading.</p>
Expand Down
8 changes: 4 additions & 4 deletions site/content/docs/5.0/utilities/overflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ group: utilities
Adjust the `overflow` property on the fly with four default values and classes. These classes are not responsive by default.

<div class="bd-example d-md-flex">
<div class="overflow-auto p-3 mb-3 mb-md-0 mr-md-3 bg-light" style="max-width: 260px; max-height: 100px;">
<div class="overflow-auto p-3 mb-3 mb-md-0 mr-md-3 border" style="max-width: 260px; max-height: 100px;" tabindex="0">
This is an example of using <code>.overflow-auto</code> on an element with set width and height dimensions. By design, this content will vertically scroll.
</div>
<div class="overflow-hidden p-3 mb-3 mb-md-0 mr-md-3 bg-light" style="max-width: 260px; max-height: 100px;">
<div class="overflow-hidden p-3 mb-3 mb-md-0 mr-md-3 border" style="max-width: 260px; max-height: 100px;">
This is an example of using <code>.overflow-hidden</code> on an element with set width and height dimensions.
</div>
<div class="overflow-visible p-3 mb-3 mb-md-0 mr-md-3 bg-light" style="max-width: 260px; max-height: 100px;">
<div class="overflow-visible p-3 mb-3 mb-md-0 mr-md-3 border" style="max-width: 260px; max-height: 100px;">
This is an example of using <code>.overflow-visible</code> on an element with set width and height dimensions.
</div>
<div class="overflow-scroll p-3 bg-light" style="max-width: 260px; max-height: 100px;">
<div class="overflow-scroll p-3 border" style="max-width: 260px; max-height: 100px;" tabindex="0">
This is an example of using <code>.overflow-scroll</code> on an element with set width and height dimensions.
</div>
</div>
Expand Down

0 comments on commit 8145088

Please sign in to comment.