1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-23 06:12:52 +02:00

fix(dialog): Fix dialog corners

The dialog styles added by @sophi-est weren't being loaded into the compiled stylesheet. I've added
them to the elements index file and moved the rounded corners styles into and `.is-rounded` modifier
class.
This commit is contained in:
Trezy
2018-12-18 13:05:32 -06:00
parent 218b3bf09c
commit 6258cd9738
3 changed files with 18 additions and 12 deletions

View File

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