Skip to content

Commit

Permalink
Merge branch 'master' into 1509-fix-react-native-example
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman authored Jul 25, 2017
2 parents d4d3761 + 9b80a99 commit 04a15a8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
6 changes: 4 additions & 2 deletions addons/storyshots/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ const hasDependency = name =>
export default function testStorySnapshots(options = {}) {
addons.setChannel(createChannel());

const isStorybook = options.framework === 'react' || hasDependency('@storybook/react');
const isStorybook =
options.framework === 'react' || (!options.framework && hasDependency('@storybook/react'));
const isRNStorybook =
options.framework === 'react-native' || hasDependency('@storybook/react-native');
options.framework === 'react-native' ||
(!options.framework && hasDependency('@storybook/react-native'));

if (isStorybook) {
storybook = require.requireActual('@storybook/react');
Expand Down
5 changes: 5 additions & 0 deletions app/react-native/src/server/index.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ export default function(publicPath, options) {
.btn:hover{
background-color: #eee
}
/* Remove blue outline defined by the user argent*/
:focus {
outline: none !important;
}
</style>
</head>
<body style="margin: 0;">
Expand Down
5 changes: 5 additions & 0 deletions app/react/src/server/index.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ export default function({ assets, publicPath, headHtml }) {
.btn:hover{
background-color: #eee
}
/* Remove blue outline defined by the user argent*/
:focus {
outline: none !important;
}
</style>
${headHtml}
</head>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"remark-lint": "^6.0.0",
"remark-lint-code": "^2.0.0",
"remark-lint-code-eslint": "^2.0.0",
"remark-preset-lint-recommended": "^2.0.0",
"remark-preset-lint-recommended": "^3.0.0",
"remark-toc": "^4.0.0",
"shelljs": "^0.7.7",
"symlink-dir": "^1.1.0"
Expand Down

0 comments on commit 04a15a8

Please sign in to comment.