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

Fix broken bootstrap css styles #606

Merged
merged 1 commit into from
Feb 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/bootstrap/match.tpl.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="ui-select-match" ng-hide="$select.open" ng-disabled="$select.disabled" ng-class="{'btn-default-focus':$select.focus}">
<button aria-label="{{ $select.baseTitle }} activate" type="button" class="btn btn-default btn-block ui-select-toggle" tabindex="-1" ;="" ng-disabled="$select.disabled" ng-click="$select.activate()">
<button aria-label="{{ $select.baseTitle }} activate" type="button" class="btn btn-default form-control ui-select-toggle" tabindex="-1" ;="" ng-disabled="$select.disabled" ng-click="$select.activate()">
<span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span>
<span ng-hide="$select.isEmpty()" class="ui-select-match-text" ng-class="{'ui-select-allow-clear': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span>
<i class="caret pull-right" ng-click="$select.toggle($event)"></i>
Expand Down
8 changes: 3 additions & 5 deletions src/select.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@

.ui-select-bootstrap .ui-select-toggle {
position: relative;

/* Instead of center because of .btn */
text-align: left;
}

.ui-select-bootstrap .ui-select-toggle > .caret {
Expand All @@ -104,11 +107,6 @@
border-bottom-right-radius: 0;
}

.ui-select-bootstrap > .ui-select-match {
/* Instead of center because of .btn */
text-align: left;
}

.ui-select-bootstrap > .ui-select-match > .caret {
position: absolute;
top: 45%;
Expand Down