Skip to content

Commit 1b19121

Browse files
committed
Autocomplete combobox demo: Add combobox-specific classes for styling. Fixes #8322 - Autocomplete: Combobox demo should not override .ui-button styles.
1 parent 6b1fea9 commit 1b19121

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
@@ -18,7 +18,7 @@
1818
position: relative;
1919
display: inline-block;
2020
}
21-
.ui-button {
21+
.ui-combobox-toggle {
2222
position: absolute;
2323
top: 0;
2424
bottom: 0;
@@ -28,7 +28,7 @@
2828
*height: 1.7em;
2929
*top: 0.1em;
3030
}
31-
.ui-autocomplete-input {
31+
.ui-combobox-input {
3232
margin: 0;
3333
padding: 0.3em;
3434
}
@@ -75,7 +75,7 @@
7575
.appendTo( wrapper )
7676
.val( value )
7777
.attr( "title", "" )
78-
.addClass( "ui-state-default" )
78+
.addClass( "ui-state-default ui-combobox-input" )
7979
.autocomplete({
8080
delay: 0,
8181
minLength: 0,
@@ -128,7 +128,7 @@
128128
text: false
129129
})
130130
.removeClass( "ui-corner-all" )
131-
.addClass( "ui-corner-right ui-button-icon" )
131+
.addClass( "ui-corner-right ui-combobox-toggle" )
132132
.click(function() {
133133
// close if already visible
134134
if ( input.autocomplete( "widget" ).is( ":visible" ) ) {

0 commit comments

Comments
 (0)