Skip to content

Commit 605b966

Browse files
committed
update storybook button styling
1 parent 7c94185 commit 605b966

13 files changed

+23
-11
lines changed

docs/iframe.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@
7171
}</script><style>#root[hidden],
7272
#docs-root[hidden] {
7373
display: none !important;
74-
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script>window['LOGLEVEL'] = "info";</script><script src="runtime~main.59dcd1fbcafcf3d1316b.bundle.js"></script><script src="vendors~main.59dcd1fbcafcf3d1316b.bundle.js"></script><script src="main.59dcd1fbcafcf3d1316b.bundle.js"></script></body></html>
74+
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script>window['LOGLEVEL'] = "info";</script><script src="runtime~main.34b24a00cab310cd884b.bundle.js"></script><script src="vendors~main.34b24a00cab310cd884b.bundle.js"></script><script src="main.34b24a00cab310cd884b.bundle.js"></script></body></html>

docs/main.34b24a00cab310cd884b.bundle.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.34b24a00cab310cd884b.bundle.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.59dcd1fbcafcf3d1316b.bundle.js

-2
This file was deleted.

docs/main.59dcd1fbcafcf3d1316b.bundle.js.map

-1
This file was deleted.

docs/runtime~main.59dcd1fbcafcf3d1316b.bundle.js renamed to docs/runtime~main.34b24a00cab310cd884b.bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/runtime~main.34b24a00cab310cd884b.bundle.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/runtime~main.59dcd1fbcafcf3d1316b.bundle.js.map

-1
This file was deleted.

docs/vendors~main.59dcd1fbcafcf3d1316b.bundle.js renamed to docs/vendors~main.34b24a00cab310cd884b.bundle.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/vendors~main.34b24a00cab310cd884b.bundle.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/vendors~main.59dcd1fbcafcf3d1316b.bundle.js.map

-1
This file was deleted.

src/index.stories.js

+14-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,13 @@ storiesOf('DateRangePicker', module)
193193
<input type="text" className="form-control col-4" />
194194
</DateRangePicker>
195195
<br />
196-
<button onClick={changeStartDate}>set startDate to 1 week ago</button>
196+
<button
197+
type="button"
198+
className="btn btn-primary"
199+
onClick={changeStartDate}
200+
>
201+
set startDate to 1 week ago
202+
</button>
197203
</div>
198204
);
199205
})
@@ -270,7 +276,13 @@ storiesOf('DateRangePicker', module)
270276
<h4>
271277
ranges: <small>{JSON.stringify(ranges)}</small>
272278
</h4>
273-
<button onClick={handleChangeRanges}>{changeButtonLabel}</button>
279+
<button
280+
type="button"
281+
className="btn btn-primary"
282+
onClick={handleChangeRanges}
283+
>
284+
{changeButtonLabel}
285+
</button>
274286
</div>
275287
);
276288
};

0 commit comments

Comments
 (0)