Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow all html elements to be styled from JavaScript #109

Open
rickthepick opened this issue Jan 24, 2019 · 1 comment
Open

Allow all html elements to be styled from JavaScript #109

rickthepick opened this issue Jan 24, 2019 · 1 comment

Comments

@rickthepick
Copy link

rickthepick commented Jan 24, 2019

Currently the only practical way to style some of the div elements is with css, e.g.,

/* override default rc-collapse-content */
div.rc-collapse-content {
padding: 0 5px;
}

/* override default rc-collapse-content-box */
div.rc-collapse-content > div.rc-collapse-content-box {
margin-top: 5px;
margin-bottom: 5px;
}

Please provide a way to override these styles from JavaScript. This will allow these elements to be styled using Glamorous or Glamor or Emotion, etc.

@rickthepick rickthepick changed the title Allow all html elements to be styled from React Allow all html elements to be styled from JavaScript Jan 24, 2019
@ghost
Copy link

ghost commented Apr 11, 2019

I can style all HTML really well with styled-components, which is also a css-in-js library.

Or do I miss something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant