-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Custom background for the playground #412
Comments
Hi @alvinsight We did run into a similar problem. For now we do:
|
You can pass style to PlayGround also:
But it leaves some paddind on the right. Give it a try and let me know, the div nails it for me |
I did recheck and the width is the problem. This works great:
|
Note that there's a media-query which sets the the padding to |
What about having a toggle for some kind of black and white theme in this situations? In some cases you can set what should be the default, but in other you can allow user to select it. @pedronauck what do you think? |
@thebergamo I liked it, Do you send to roadmap as a feature? Thanks man |
Will do it. Maybe I can open a PR as well sooner. |
@thebergamo nice man 🚀 |
Fixed on release v0.12.10 ✅ |
|
I can confirm this, my inline styles into Playground component isn't working anymore. |
Hi, thanks for your work on Docz, I'm giving it a try and it's fantastic! 🎉
How would one go about changing the background of the preview in the
<Playground>
for only one component ? It doesn't look like it's possible at the time of writing.Description
I know you can create a custom theme for the entire Docz site, but in our case it's only a specific subset of components that don't work well on a white background, with the vast majority looking great.
It would be great if we could just pass in a CSS colour as a property of the playground that would only affect that specific instance.
Thanks,
Alvin
The text was updated successfully, but these errors were encountered: