Skip to content

Commit

Permalink
Merge pull request #37 from guerler/toggle_radio
Browse files Browse the repository at this point in the history
Fix radio button toggling
  • Loading branch information
dannon authored Apr 9, 2018
2 parents f990661 + f85c575 commit 33f5f4d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
3 changes: 1 addition & 2 deletions client/galaxy/scripts/mvc/ui/ui-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ RadioButton.View = Base.extend({
/** Main template function */
_template: function() {
return $("<div/>")
.addClass("btn-group btn-group-toggle")
.attr("data-toggle", "buttons");
.addClass("btn-group ui-radiobutton");
}
});

Expand Down
11 changes: 11 additions & 0 deletions client/galaxy/style/scss/ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,17 @@ $ui-margin-horizontal-large: 10px;
}
}

.ui-radiobutton {
top: -2px;
input {
display: none;
}
label {
padding: 2px 10px;
margin: 0px;
}
}

.ui-button-check {
.icon {
font-size: 1.2em;
Expand Down
8 changes: 8 additions & 0 deletions static/style/blue/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -10683,6 +10683,14 @@ html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
top: 8px;
left: 10px; }

.ui-radiobutton {
top: -2px; }
.ui-radiobutton input {
display: none; }
.ui-radiobutton label {
padding: 3px 10px;
margin: 0px; }

.ui-button-check {
cursor: pointer;
margin-bottom: 5px; }
Expand Down

0 comments on commit 33f5f4d

Please sign in to comment.