Skip to content

Commit

Permalink
fix(button): Add text-decoration: none to mdc-button to allow link st…
Browse files Browse the repository at this point in the history
…yles (#210)
  • Loading branch information
amsheehan authored Jan 24, 2017
1 parent d32f3ae commit eef6fe8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions demos/button.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,39 @@ <h1>MDC WEB BUTTON</h1>
Div
</div>
</fieldset>
<fieldset>
<legend>Links with Button Style</legend>
<a href="/button.html" class="mdc-button">
Default
</a>
<a href="/button.html" class="mdc-button mdc-button--raised">
Raised
</a>
<a href="/button.html" class="mdc-button mdc-button--dense">
Dense Default
</a>
<a href="/button.html" class="mdc-button mdc-button--raised mdc-button--dense">
Dense Raised
</a>
<a href="/button.html" class="mdc-button mdc-button--compact">
Compact
</a>
<a href="/button.html" class="mdc-button mdc-button--raised mdc-button--compact">
Compact Raised
</a>
<a href="/button.html" class="mdc-button mdc-button--primary">
Default with Primary
</a>
<a href="/button.html" class="mdc-button mdc-button--raised mdc-button--primary">
Raised with Primary
</a>
<a href="/button.html" class="mdc-button mdc-button--accent">
Default with Accent
</a>
<a href="/button.html" class="mdc-button mdc-button--raised mdc-button--accent">
Raised with Accent
</a>
</fieldset>
<fieldset disabled>
<legend>Disabled Buttons</legend>
<button class="mdc-button">
Expand Down
1 change: 1 addition & 0 deletions packages/mdc-button/mdc-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
font-weight: 500;
line-height: 36px; // Override line-height so text aligns centered
text-align: center;
text-decoration: none;
text-transform: uppercase;
vertical-align: middle;
box-sizing: border-box;
Expand Down

0 comments on commit eef6fe8

Please sign in to comment.