Missing indication on how to style the searchForFacetValues searchbar
See original GitHub issueDo you want to request a feature or report a bug? Feature.
Feature: What is your use case for such a feature?
I want to make it match the rest of the design of my search. Neither the searchForFacetValues.templates
, templates
nor cssClasses
options seem to accept anything that could let me change the styling of the searchbar. At least, I couldn’t find any mention of it in the doc.
The pre-generated class names also does not seem to follow the ais-
notation used in the other widgets, which makes me think they are internal classes and shouldn’t be relied upon.
Feature: What is your proposed API entry? The new option to add? What is the behavior?
Having the class names (currently searchbox
, sbx-sffv
, sbx-sffv__wrapper
, sbx-sffv__input
, etc) follow the ais-
naming used in the other widgets would be enough for my use-case. It would give me the signal that I can style them and they won’t change in an upcoming release.
What project are you opening an issue for?
- instantsearch.js
What is the version you are using? Always use the latest one before opening a bug issue. 1.11.2
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:13 (12 by maintainers)
Top GitHub Comments
Definitely! We’ll work on that for InstantSearch.js 3.
I’d rather have more classes than less if it’s justified (will avoid using complex selectors, which could lead to specificity issues).
That being said, I’m trying to simplify the DOM wherever possible