Skip to content

Commit 83e2a59

Browse files
selfthinkermikesherov
authored andcommitted
Button: fixed inconsistent button styling in most browsers. Fixes #7996 - Button: Inconsistent styling based on markup
1 parent a5d50da commit 83e2a59

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

themes/base/jquery.ui.button.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
display: inline-block;
1313
position: relative;
1414
padding: 0;
15+
line-height: normal;
1516
margin-right: .1em;
1617
cursor: pointer;
18+
vertical-align: middle;
1719
text-align: center;
1820
zoom: 1;
1921
overflow: visible; /* removes extra width in IE */
@@ -43,7 +45,7 @@ button.ui-button-icons-only {
4345
/* button text element */
4446
.ui-button .ui-button-text {
4547
display: inline-block;
46-
line-height: 1.4;
48+
line-height: normal;
4749
}
4850
.ui-button-text-only .ui-button-text {
4951
padding: .4em 1em;
@@ -105,7 +107,8 @@ input.ui-button {
105107
}
106108

107109
/* workarounds */
108-
/* reset extra padding in Firefox */
110+
/* reset extra padding in Firefox, see h5bp.com/l */
111+
input.ui-button::-moz-focus-inner,
109112
button.ui-button::-moz-focus-inner {
110113
border: 0;
111114
padding: 0;

0 commit comments

Comments
 (0)