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

Fix styling for bootstrap placeholder #879

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions src/bootstrap/match.tpl.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div class="ui-select-match" ng-hide="$select.open" ng-disabled="$select.disabled" ng-class="{'btn-default-focus':$select.focus}">
<span tabindex="-1"
class="btn btn-default form-control ui-select-toggle"
class="form-control ui-select-toggle"
aria-label="{{ $select.baseTitle }} activate"
ng-disabled="$select.disabled"
ng-click="$select.activate()"
style="outline: 0;">
<span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span>
<span ng-show="$select.isEmpty()" class="ui-select-placeholder">{{$select.placeholder}}</span>
<span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{'ui-select-allow-clear': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span>
<i class="caret pull-right" ng-click="$select.toggle($event)"></i>
<a ng-show="$select.allowClear && !$select.isEmpty()" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px"
Expand Down
13 changes: 13 additions & 0 deletions src/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,19 @@ body > .ui-select-bootstrap.open {
border-right: 1px solid #428bca;
}

.ui-select-bootstrap .ui-select-placeholder {
color: #999;
opacity: 1;
}

.ui-select-bootstrap .ui-select-placeholder {
color: #999;
}

.ui-select-bootstrap .ui-select-placeholder {
color: #999;
}

.ui-select-bootstrap .ui-select-choices-row>a {
display: block;
padding: 3px 20px;
Expand Down