Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 1b9bafb

Browse files
author
Marcy Sutton
committed
feat(button): support for link icon buttons
Closes #2265
1 parent 1c19272 commit 1b9bafb

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

docs/app/img/icons/launch.svg

+4
Loading

src/components/button/button.scss

+3
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ $icon-button-margin: 0.600rem !default;
102102
margin: 0 $icon-button-margin;
103103
height: $icon-button-height;
104104
min-width: 0;
105+
line-height: $icon-button-height;
106+
padding-left: 0;
107+
padding-right: 0;
105108
width: $icon-button-width;
106109
}
107110

src/components/button/demoBasicUsage/index.html

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@
7171
<md-button class="md-icon-button" aria-label="More">
7272
<md-icon md-svg-icon="img/icons/more_vert.svg"></md-icon>
7373
</md-button>
74+
<md-button class="md-icon-button launch"
75+
href="http://google.com"
76+
aria-label="Google.com"
77+
target="_blank"
78+
title="Launch Google.com in new window">
79+
<md-icon md-svg-icon="img/icons/launch.svg"></md-icon>
80+
</md-button>
7481
<div class="label">Icon Button</div>
7582
</section>
7683
</md-content>

0 commit comments

Comments
 (0)