Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 1ed6f92

Browse files
Core: Width auto for inline button elements in toolbars
Fixes gh-7232 Closes gh-7446
1 parent 24200cc commit 1ed6f92

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

css/structure/jquery.mobile.core.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ div.ui-mobile-viewport {
237237
-ms-user-select: none;
238238
user-select: none;
239239
}
240-
.ui-btn-icon-notext {
240+
.ui-btn-icon-notext,
241+
.ui-header button.ui-btn.ui-btn-icon-notext,
242+
.ui-footer button.ui-btn.ui-btn-icon-notext {
241243
padding: 0;
242244
width: 1.75em;
243245
height: 1.75em;
@@ -383,7 +385,9 @@ button.ui-btn,
383385
-moz-appearance: none;
384386
width: 100%;
385387
}
386-
button.ui-btn-inline {
388+
button.ui-btn-inline,
389+
.ui-header button.ui-btn,
390+
.ui-footer button.ui-btn {
387391
width: auto;
388392
}
389393
/* Firefox adds a 1px border in a button element. We negate this to make sure they have the same height as other buttons in controlgroups. */

css/structure/jquery.mobile.grid.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ li.ui-block-e {
4949
[class*="ui-block-"] > .ui-checkbox,
5050
[class*="ui-block-"] > .ui-radio,
5151
[class*="ui-block-"] > button.ui-btn-inline,
52-
[class*="ui-block-"] > button.ui-btn-icon-notext {
52+
[class*="ui-block-"] > button.ui-btn-icon-notext,
53+
.ui-header [class*="ui-block-"] > button.ui-btn,
54+
.ui-footer [class*="ui-block-"] > button.ui-btn {
5355
margin-right: .3125em;
5456
margin-left: .3125em;
5557
}

0 commit comments

Comments
 (0)