Skip to content

Commit 637d102

Browse files
committed
Autocomplete combobox demo: Add combobox-specific classes for styling. Fixes #8322 - Autocomplete: Combobox demo should not override .ui-button styles.
(cherry picked from commit 1b19121) Conflicts: demos/autocomplete/combobox.html
1 parent 0cbfb2f commit 637d102

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

demos/autocomplete/combobox.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
position: relative;
1717
display: inline-block;
1818
}
19-
.ui-button {
19+
.ui-combobox-toggle {
2020
position: absolute;
2121
top: 0;
2222
bottom: 0;
@@ -26,7 +26,7 @@
2626
*height: 1.7em;
2727
*top: 0.1em;
2828
}
29-
.ui-autocomplete-input {
29+
.ui-combobox-input {
3030
margin: 0;
3131
padding: 0.3em;
3232
}
@@ -47,7 +47,7 @@
4747
input = $( "<input>" )
4848
.appendTo( wrapper )
4949
.val( value )
50-
.addClass( "ui-state-default" )
50+
.addClass( "ui-state-default ui-combobox-input" )
5151
.autocomplete({
5252
delay: 0,
5353
minLength: 0,
@@ -114,7 +114,7 @@
114114
text: false
115115
})
116116
.removeClass( "ui-corner-all" )
117-
.addClass( "ui-corner-right ui-button-icon" )
117+
.addClass( "ui-corner-right ui-combobox-toggle" )
118118
.click(function() {
119119
// close if already visible
120120
if ( input.autocomplete( "widget" ).is( ":visible" ) ) {

0 commit comments

Comments
 (0)