algolia / vue-instantsearch

👀 Algolia components for building search UIs with Vue.js
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/vue
MIT License
854 stars 157 forks source link

ais-Pagination-item--page not working #1128

Closed ymc-sise closed 2 years ago

ymc-sise commented 2 years ago

Bug 🐞

What is the current behavior?

If I declare ais-Pagination-item--page in class-names for the <AisPagination> component, class does not show up.

Make a sandbox with the current behavior

Check class missing on list element:

https://vue-instantsearch.netlify.app/stories/?selectedKind=ais-pagination&selectedStory=default&full=0&addons=1&stories=1&panelRight=1&addonPanel=storybooks%2Fstorybook-addon-knobs

What is the expected behavior?

ais-Pagination-item--page does show up according to documentation https://www.algolia.com/doc/api-reference/widgets/pagination/vue/#widget-param-class-names

Does this happen only in specific situations?

What is the proposed solution?

[suit('item', 'page')]: true,

See PR https://github.com/algolia/vue-instantsearch/pull/1129

What is the version you are using?

4.3.3