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

Commit

Permalink
Navbar: Fixed styling of button elements
Browse files Browse the repository at this point in the history
Fixes gh-7606
  • Loading branch information
jaspermdegroot committed Aug 25, 2014
1 parent 516b791 commit a6b00e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions css/structure/jquery.mobile.navbar.css
Expand Up @@ -25,6 +25,11 @@
margin: 0;
border-right-width: 0;
}
.ui-header .ui-navbar li button.ui-btn,
.ui-footer .ui-navbar li button.ui-btn {
margin: 0;
width: 100%;
}
.ui-navbar .ui-btn:focus {
z-index: 1;
}
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.buttonMarkup.js
Expand Up @@ -259,7 +259,7 @@ $.fn.buttonMarkup.defaults = {
};

$.extend( $.fn.buttonMarkup, {
initSelector: "a:jqmData(role='button'), .ui-bar > a, .ui-bar > :jqmData(role='controlgroup') > a, button"
initSelector: "a:jqmData(role='button'), .ui-bar > a, .ui-bar > :jqmData(role='controlgroup') > a, button:not(:jqmData(role='navbar') button)"
});

})( jQuery );
Expand Down
2 changes: 1 addition & 1 deletion js/widgets/navbar.js
Expand Up @@ -18,7 +18,7 @@ $.widget( "mobile.navbar", {
_create: function() {

var $navbar = this.element,
$navbtns = $navbar.find( "a" ),
$navbtns = $navbar.find( "a, button" ),
iconpos = $navbtns.filter( ":jqmData(icon)" ).length ? this.options.iconpos : undefined;

$navbar.addClass( "ui-navbar" )
Expand Down

0 comments on commit a6b00e7

Please sign in to comment.