Context
It would be nice to change all class names via javascript once the itemSelector class name is passed to the SortFilter and child component.
Process or Steps to Reproduce
Expected result
<div class="sortblock__inner">
<img class="sortblock alt="" />
</div>
Current result
Using a index.css in the docs/
Possible Fix
App.js
...
const itemSelector = 'sortblock';
...
<SortFilter defaultSort={defaultSort} taxonomies={taxonomies} itemSelector={itemSelector}>
<Elements {...records} itemSelector={itemSelector} />
</SortFilter>
css pseudo code
css(itemSelector) = {
${itemSelector}__img = {css`
padding: 32px;
`
}
then in the img element do something like but apply it to all of the classes.
<img className={`${itemSelector}__img`} src={src} alt="" />
Examples
Context
It would be nice to change all class names via javascript once the itemSelector class name is passed to the SortFilter and child component.
Process or Steps to Reproduce
Expected result
Current result
Using a index.css in the docs/
Possible Fix
App.js
css pseudo code
then in the img element do something like but apply it to all of the classes.
Examples