Skip to content

Commit

Permalink
fix: add/remove aria-label attrs to appease a11y checkers
Browse files Browse the repository at this point in the history
  • Loading branch information
kswedberg committed Oct 30, 2021
1 parent f617767 commit b48cf4e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions example/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ module.exports = {
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
],
htmlAttrs: {
lang: 'en',
},
},

rootDir: resolve(__dirname),
buildDir: resolve(__dirname, './.nuxt'),
srcDir: __dirname,
Expand Down
1 change: 0 additions & 1 deletion lib/components/Breaky.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
</TransitionExpand>

<div
aria-label="Current breakpoint"
class="current-breakpoint transition duration-300 text-center border-2 border-transparent py-2 px-4 rounded-full flex items-center justify-around"
:class="{ 'border-opacity': !expanded }"
>
Expand Down
6 changes: 3 additions & 3 deletions lib/components/CurrentScreenIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<!-- Desktop -->
<svg
v-show="screenWidth > 1024"
aria-hidden="true"
focusable="false"
data-icon="desktop"
class="h-4 mr-3 fill-current"
role="img"
aria-label="Desktop"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 576 512"
>
Expand All @@ -19,11 +19,11 @@
<!-- Tablet -->
<svg
v-show="screenWidth <= 1024 && screenWidth > 768"
aria-hidden="true"
focusable="false"
data-icon="tablet-alt"
class="h-4 mr-3 fill-current"
role="img"
aria-label="Tablet"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"
>
Expand All @@ -35,11 +35,11 @@
<!-- Mobile -->
<svg
v-show="screenWidth <= 768"
aria-hidden="true"
focusable="false"
data-icon="mobile-alt"
class="h-4 mr-3 fill-current"
role="img"
aria-label="Mobile"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 320 512"
>
Expand Down

0 comments on commit b48cf4e

Please sign in to comment.