Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Impossible to styled with props for nested component with applyTheme #84

Open
clementloridan opened this issue Oct 27, 2020 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@clementloridan
Copy link

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.

@jxom jxom added bug Something isn't working good first issue Good for newcomers labels Feb 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants