1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-28 16:30:09 +02:00

feat(dialog): adding dark modifier to dialogs #241

This commit is contained in:
shotaro kaneda
2019-01-17 13:01:28 -03:00
parent b58e8b01c9
commit e74d2c0e35
2 changed files with 11 additions and 1 deletions

View File

@@ -9,7 +9,8 @@ stories.addDecorator(withKnobs);
stories.add('dialog', () => {
const open = boolean('open', true) ? 'open' : '';
const isRounded = boolean('is-rounded', false) ? 'is-rounded' : '';
const selectedClasses = [isRounded];
const isDark = boolean('is-dark', false) ? 'is-dark' : '';
const selectedClasses = [isRounded, isDark];
return `<dialog class="nes-dialog ${selectedClasses.join(' ')}" ${open}>
<p class="title">Dialog</p>