Skip to content

Commit

Permalink
feat(link): add disabled link (#566)
Browse files Browse the repository at this point in the history
* feat(link): add disabled link

* fix(links): remove disabled from a element
  • Loading branch information
tw15egan authored Feb 15, 2018
1 parent afdedb8 commit cbc5670
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/link/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,10 @@
&:focus {
@include focus-outline('border');
}

&[aria-disabled="true"] {
opacity: .5;
pointer-events: none;
}
}
}
1 change: 1 addition & 0 deletions src/components/link/link.html
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<a href="#" class="bx--link">Link</a>
<a href="#" class="bx--link" tabindex="-1" aria-disabled="true">Link</a>

0 comments on commit cbc5670

Please sign in to comment.