bumbag-ui icon indicating copy to clipboard operation
bumbag-ui copied to clipboard

Impossible to styled with props for nested component with applyTheme

Open clementloridan opened this issue 3 years ago • 0 comments

Describe the bug

I want to do this:

` import { SelectMenu as SelectMenuBumbag, applyTheme } from 'bumbag';

const SelectMenu = applyTheme(SelectMenuBumbag, { styles: { base: p => { return { width: p.autoWidth ? 'auto' : '100%', }; }, }, Button: { styles: { base: p => { return { display: p.autoWidth ? 'inline-flex' : 'flex', }; }, }, }, defaultProps: {}, });

export default SelectMenu;

`

But the styles of the SelectMenu Button was not apply.

clementloridan avatar Oct 27 '20 08:10 clementloridan