Instantsearch.js: sortBySelector CSS classes not applying to select element

Created on 3 Nov 2017  路  4Comments  路  Source: algolia/instantsearch.js

When I add cssClasses to the sortBySelector widget, the classes on the select element don't apply. If I add classes to the root element, they apply to both the root and the select.

cssClasses: {
    root: 'white ttu tracked f6 fw5 bg-colour-button pa2 pv105 br1',
    item: 'white'
},

Most helpful comment

That's got it working 馃憤

All 4 comments

Hi there, thanks for opening this issue :)

Which version of InstantSearch.js are you using?

Hi @lukepearce can you try with 2.2.*?

That's got it working 馃憤

Was this page helpful?
0 / 5 - 0 ratings