Skip to content

Commit

Permalink
refactor(link): create disabled class
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Feb 20, 2019
1 parent 53acb36 commit d1e0262
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/components/link/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
color: $link-visited;
}
}

.#{$prefix}--disabled {
color: $disabled-02;
}
}

@include exports('link') {
Expand Down
3 changes: 2 additions & 1 deletion src/components/link/link.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--
<!--
Copyright IBM Corp. 2016, 2018
This source code is licensed under the Apache-2.0 license found in the
Expand All @@ -7,3 +7,4 @@

<a href="#" class="{{@root.prefix}}--link">Link</a>
<a class="{{@root.prefix}}--link" tabindex="-1" aria-disabled="true">Link</a>
<p class="{{@root.prefix}}--disabled">Disabled Link</p>

0 comments on commit d1e0262

Please sign in to comment.