Skip to content

Commit 9ec82c4

Browse files
committed
fix: vertically align buttons with the surrounding text.
Also add a section for baseline vertical alignment.
1 parent c624966 commit 9ec82c4

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/components/button/_button-base.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ $md-mini-fab-padding: 8px !default;
3636
// Reset browser <button> styles.
3737
background: transparent;
3838
text-align: center;
39-
overflow: hidden;
4039
cursor: pointer;
4140
user-select: none;
4241
outline: none;
@@ -46,7 +45,7 @@ $md-mini-fab-padding: 8px !default;
4645
display: inline-block;
4746
white-space: nowrap;
4847
text-decoration: none;
49-
vertical-align: middle;
48+
vertical-align: baseline;
5049

5150
// Typography.
5251
font-size: $md-body-font-size-base;

src/demo-app/button/button-demo.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
<div class="demo-button">
2+
<section>
3+
Link
4+
<a href="http://www.google.com" md-button color="primary">link</a>
5+
Button
6+
<button md-button>flat</button>
7+
</section>
8+
<section>
9+
Link
10+
<a href="http://www.google.com" md-raised-button color="primary">link</a>
11+
Button
12+
<button md-raised-button>button</button>
13+
</section>
14+
215
<section>
316
<button md-button>flat</button>
417
<button md-raised-button>raised</button>

0 commit comments

Comments
 (0)