Skip to content

Commit

Permalink
Storybook junk
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Aug 27, 2018
1 parent 2f48207 commit a8272b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ lerna-debug.log*
/packages/*/umd
/packages/*/index.js
/packages/*/lib
/foo.js

15 changes: 7 additions & 8 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
// import { configure } from "@storybook/react";

// function loadStories() {
// require("../stories.js");
// }

// configure(loadStories, module);

import "./styles.css";
import React from "react";
import path from "path";
Expand All @@ -19,6 +11,13 @@ let getPackageName = filePath =>
.reverse()[1];

configure(() => {
// Story book is SUPER SLOW so I tend to do just one example at a time.
// const {
// name,
// Example
// } = require("../packages/dialog/examples/nested.example.js");
// storiesOf("Dialog", module).add(name, () => <Example />);

// Automatically import all examples
const req = require.context(
"../packages",
Expand Down
1 change: 1 addition & 0 deletions packages/dialog/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ let DialogContent = React.forwardRef(
<FocusContext.Consumer>
{contentRef => (
<div
aria-modal="true"
data-reach-dialog-content
tabIndex="-1"
onClick={wrapEvent(onClick, stopPropagation)}
Expand Down

0 comments on commit a8272b1

Please sign in to comment.