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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user