Docz: Body doesn't turn into dark when dark mode is selected

Created on 17 Nov 2019  路  7Comments  路  Source: doczjs/docz

Bug Report

Body doesn't turn black when it's turned on

To Reproduce

https://github.com/smakosh/unnamed-website

Expected behavior

This shouldn't happen, background has to be dark

Screen Shot 2019-11-17 at 19 17 02

Environment

  • docz version: 2.0.0-rc.68
  • OS: macOS Catalina
  • Node/npm version: 12.13.0
bug pending-user-response v2

All 7 comments

Hey @smakosh

Could try updating to the latest docz version :

yarn add docz@next

I think this was fixed here https://github.com/doczjs/docz/releases/tag/v2.0.0-rc.72

Nope the issue is still occurring

docz version: 2.0.0-rc.75

Hey @smakosh

Which browser are you seeing this behavior in ?

Looks like it's working as expected on chrome, firefox and brave on my end when I open https://unnamed.smakosh.com/buttons#disabled .

unnamed-website dark mode example

I'm on Chrome, macBook Pro 15"
You can see the white box on the screenshot you took

Ok so you're talking about the additional line of whitespace to the Code component NOT the issue you referenced at first 馃憤

This looks like it's related to the custom css you added here : https://github.com/smakosh/unnamed-website/blob/master/src/gatsby-theme-docz/main.css#L80

The overflow:scroll is creating an un-necessary scroll bar.

You can also use the Playground to make your docs more interactive instead of duplicating the code, once for rendering and another time for display :

+ import { Playground } from 'docz'
+ <Playground>
<button class="btn btn-primary gradient-black">btn-primary</button>
<button class="btn btn-primary gradient-green">btn-primary</button>
<button class="btn btn-primary gradient-orange">btn-primary</button>
<button class="btn btn-primary gradient-purple">btn-primary</button>
+ <Playground>

- ```html
- <button class="btn btn-primary gradient-black">btn-primary</button>

- <button class="btn btn-primary gradient-green">btn-primary</button>

- <button class="btn btn-primary gradient-orange">btn-primary</button>

- <button class="btn btn-primary gradient-purple">btn-primary</button>
- ```

Oh I see, thanks @rakannimer!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wldcordeiro picture wldcordeiro  路  3Comments

regrettably picture regrettably  路  3Comments

hayk94 picture hayk94  路  3Comments

mquandalle picture mquandalle  路  3Comments

capaj picture capaj  路  3Comments