Skip to content

Commit

Permalink
fix(button): Use real button tag to improve accessibility. (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
urbantrout authored and apertureless committed Aug 22, 2018
1 parent 01808b1 commit cbe26ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/CookieLaw.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="Cookie__buttons">
<a :target="target" :href="buttonLink" v-if="externalButtonLink" :class="buttonClass">{{ buttonLinkText }}</a>
<router-link :to="buttonLink" v-if="internalButtonLink" :class="buttonClass">{{ buttonLinkText }}</router-link>
<div :class="buttonClass" @click="accept">{{ buttonText }}</div>
<button :class="buttonClass" @click="accept">{{ buttonText }}</button>
</div>
</div>
</transition>
Expand Down Expand Up @@ -199,6 +199,8 @@
padding: 0.625em 3.125em;
color: $buttonFontColor;
border-radius: $buttonRadius;
border: 0;
font-size: 1em;
&:hover {
background: darken($buttonBackgroundColor, 10%);
Expand Down

0 comments on commit cbe26ad

Please sign in to comment.