Styles and ClassName props ignored by Select component.
See original GitHub issueFor 99% of my grommet style overrides I use either SCSS or inline styles (so called ‘JSS’), not the Grommet theme system. The box and button components allow me to do this as one would expect, but the Select component seems to completely ignore these props.
Expected Behavior
I expect Select components to honor style
and className
props, but at a minimum at least one of them.
Actual Behavior
Select ignores style and className props
Steps to Reproduce
- Add style or className props to Select.
- Observe they are ignored.
Environment
Grommet version: 2.9.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
React ignores one of two style classes - Stack Overflow
I've execute your code, and it works, I think the problem is where you call the button you are not passing props to....
Read more >Styling and CSS - React
Can I use inline styles? Yes, see the docs on styling here. Are inline styles bad? CSS classes are generally better for performance...
Read more >Styles - React Select
Examples. Styles. React Select offers 3 main APIs for styling: The styles prop; The classNames prop; The classNamePrefix prop. The styles prop.
Read more >Complete Guide On How To Use Styled-components In React
This is possible because styled-components creates a unique class name for each component (styled component) we create. As such the styles ...
Read more >Cookbook - React Styleguidist
How to exclude some components from style guide?#. Styleguidist will ignore tests ( __tests__ folder and filenames containing .test.js or .spec.js ) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is an example and a few screenshots https://codesandbox.io/s/cranky-pond-iwvzu?fontsize=14&hidenavigation=1&theme=dark
Apologies, I assume I was doing something wrong then. Thank you for looking into it.