Reputation: 2773
I'm using ui-select select-boxes and regular bootstrap select-boxes side by side, and I want them to look exactly the same. More precisely, I want the ui-select boxes to look like the bootstrap ones.
I noticed a few differences:
I'd like it to work both with the grouping feature and without it.
Some of the features mentioned above are really hard to notice, so any answer covering most of the stuff is good.
Here's a link to the official ui-select
plunker.
Thanks a lot!
Upvotes: 0
Views: 2212
Reputation: 19946
Here is the way to remove the blue glow
.ui-select-match.btn-default-focus {
outline: 0;
box-shadow: none;
}
Upvotes: 0
Reputation: 2773
Not perfect at all, but here is some progress:
.bootstrap .ui-select-bootstrap .ui-select-toggle {
cursor: default;
-webkit-appearance: menulist;
-moz-appearance: menulist;
}
.bootstrap .ui-select-bootstrap input[type="text"] {
-webkit-appearance: menulist;
-moz-appearance: menulist;
}
.bootstrap .ui-select-bootstrap .ui-select-toggle .caret {
display: none;
}
.bootstrap .ui-select-bootstrap .ui-select-match .btn-default,
.bootstrap .ui-select-bootstrap .ui-select-match .btn-default:hover {
color: #555;
background-color: initial;
border-color: #ccc;
}
.bootstrap .ui-select-bootstrap .ui-select-match {
outline: 0 none;
outline-offset: 0;
}
.bootstrap .ui-select-bootstrap .btn-default-focus .btn-default,
.bootstrap .ui-select-bootstrap .btn-default-focus .btn-default:hover {
border-color: #66afe9;
background-color: #fff;
color: #555;
}
.bootstrap .ui-select-bootstrap .ui-select-choices-row-inner,
.bootstrap .ui-select-bootstrap .ui-select-choices-group-label {
cursor: default;
}
To use it, put the ui-select
in a <div class="bootstrap">
. It works best in chrome since the -moz-appearance: menulist;
doesn't do anything (-webkit-appearance: menulist;
adds a little arrow on the side to make it look like a select box).
This only solves 1, 2, 4 and 6. Also, there are some more problems:
Upvotes: 2