Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Commit

Permalink
Fix jquery-ui autocomplete styles
Browse files Browse the repository at this point in the history
The autocomplete functionality was working but the list items were appearing on
a transparent background.

It looks like I introduced this problem in
419249e when I changed from using `require` to
`@import` to load the autocomplete styles. I need to use `require` because
'jquery-ui/autocomplete' has additional `require` statements that all need to
be processed by Sprockets.

It looks like I may have been able to use the jquery-ui-sass-rails[1] Gem to
avoid having to revert to Sprockets, but I think my approach is a little
simpler.

[1]: https://github.com/jhilden/jquery-ui-sass-rails
  • Loading branch information
chrisroos committed Mar 25, 2015
1 parent 242e13e commit ff0fce4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@import "jquery-ui/autocomplete";
/*
*= require jquery-ui/autocomplete
*/

@import "bootstrap-sprockets";
@import "bootstrap";

Expand Down

0 comments on commit ff0fce4

Please sign in to comment.