Skip to content

Commit aa24dae

Browse files
jaspermdegrootarschmitz
authored andcommitted
Button: Fixed the height of icon-only buttons in controlgroups
1 parent 213fc88 commit aa24dae

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

themes/base/button.css

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,19 @@
2727
.ui-button:active {
2828
text-decoration: none;
2929
}
30+
3031
/* to make room for the icon, a width needs to be set here */
3132
.ui-button-icon-only {
32-
padding: 0;
33-
height: 2.16em;
33+
width: 2.2em;
34+
box-sizing: border-box;
3435
text-indent: -9999px;
3536
white-space: nowrap;
3637
}
38+
3739
.ui-icon {
3840
position: absolute;
3941
display: block;
4042
}
41-
/* button elements seem to need a little more width */
42-
button.ui-button-icon-only {
43-
width: 2.4em;
44-
}
4543

4644
/* no icon support for input elements, provide padding by default */
4745
input.ui-button.ui-icon-end,
@@ -73,7 +71,6 @@ input.ui-button.ui-button-icon-only {
7371
.ui-button.ui-icon-bottom .ui-icon {
7472
top: auto;
7573
bottom: .05em;
76-
7774
}
7875

7976
.ui-button-icon-only .ui-icon {

0 commit comments

Comments
 (0)