Skip to content

Update theming classes, theming document. #200

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

Merged
merged 2 commits into from
Jan 4, 2018
Merged

Conversation

aulneau
Copy link
Contributor

@aulneau aulneau commented Jan 3, 2018

Sorry about this!

I am modifying where we attach our variables. As I was theming parts of the Batch app, I wanted access to these variables in different parts outside of the editor so it could live as one cohesive thing. I've opted to change where we are attaching our variables from having them on .plotly-editor to making a class named .plotly-editor--theme-provider so that if you want to use the variables in parts of your application outside of the editor, you can add this class and get access to the properties.

Another solution is to just stick with using :root{}, but I worry that we could crowd peoples own variables in their :root{} if they are also using css custom properties.

@aulneau aulneau requested a review from VeraZab January 3, 2018 21:03
@aulneau aulneau merged commit cac288d into master Jan 4, 2018
@aulneau aulneau deleted the theming-updates branch January 8, 2018 23:02
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

Successfully merging this pull request may close these issues.

2 participants