Skip to content

Commit

Permalink
Autocomplete combobox demo: Add combobox-specific classes for styling…
Browse files Browse the repository at this point in the history
…. Fixes #8322 - Autocomplete: Combobox demo should not override .ui-button styles.
  • Loading branch information
scottgonzalez committed May 15, 2012
1 parent 6b1fea9 commit 1b19121
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demos/autocomplete/combobox.html
Expand Up @@ -18,7 +18,7 @@
position: relative; position: relative;
display: inline-block; display: inline-block;
} }
.ui-button { .ui-combobox-toggle {
position: absolute; position: absolute;
top: 0; top: 0;
bottom: 0; bottom: 0;
Expand All @@ -28,7 +28,7 @@
*height: 1.7em; *height: 1.7em;
*top: 0.1em; *top: 0.1em;
} }
.ui-autocomplete-input { .ui-combobox-input {
margin: 0; margin: 0;
padding: 0.3em; padding: 0.3em;
} }
Expand Down Expand Up @@ -75,7 +75,7 @@
.appendTo( wrapper ) .appendTo( wrapper )
.val( value ) .val( value )
.attr( "title", "" ) .attr( "title", "" )
.addClass( "ui-state-default" ) .addClass( "ui-state-default ui-combobox-input" )
.autocomplete({ .autocomplete({
delay: 0, delay: 0,
minLength: 0, minLength: 0,
Expand Down Expand Up @@ -128,7 +128,7 @@
text: false text: false
}) })
.removeClass( "ui-corner-all" ) .removeClass( "ui-corner-all" )
.addClass( "ui-corner-right ui-button-icon" ) .addClass( "ui-corner-right ui-combobox-toggle" )
.click(function() { .click(function() {
// close if already visible // close if already visible
if ( input.autocomplete( "widget" ).is( ":visible" ) ) { if ( input.autocomplete( "widget" ).is( ":visible" ) ) {
Expand Down

0 comments on commit 1b19121

Please sign in to comment.