Skip to content

Commit

Permalink
fix(storybook): change isdark container font color to white (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallahalsamman committed Dec 8, 2018
1 parent 479e503 commit a6488a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { configure } from '@storybook/html'; // eslint-disable-line import/no-extraneous-dependencies

import '../css/nes.min.css';
import '../css/nes.css'; // eslint-disable-line import/no-unresolved

// automatically import all files ending in *.stories.js
const req = require.context('../docs', true, /.stories.js$/);
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ <h2 class="title">Containers</h2>
</div>
<div class="container is-dark with-title">
<p class="title">Container.is-dark</p>
<p style="color: white;">Good morning. Thou hast had a good night's sleep, I hope.</p>
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
</div>
<div class="container is-rounded">
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
</div>
<div class="container is-rounded is-dark">
<p style="color: white;">Good morning. Thou hast had a good night's sleep, I hope.</p>
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
</div>
</div>
</section>
Expand Down
1 change: 1 addition & 0 deletions scss/elements/containers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
}

&.is-dark {
color: $background-color;
&::before {
background-color: $base-color;
}
Expand Down

0 comments on commit a6488a1

Please sign in to comment.