From 138ef71811694a4929c8213df7d4632ed5792a66 Mon Sep 17 00:00:00 2001 From: Steffen Gorenflo Date: Tue, 19 Mar 2019 17:54:55 +0100 Subject: [PATCH] add fonts and color to styling in info addon update snapshots --- .../info/src/__snapshots__/index.test.js.snap | 14 +- addons/info/src/components/Story.js | 3 +- .../__snapshots__/index.stories.storyshot | 4 +- .../addon-info.stories.storyshot | 120 +++++++++--------- 4 files changed, 76 insertions(+), 65 deletions(-) diff --git a/addons/info/src/__snapshots__/index.test.js.snap b/addons/info/src/__snapshots__/index.test.js.snap index 5f0d0c5235ce..198f4bcad08f 100644 --- a/addons/info/src/__snapshots__/index.test.js.snap +++ b/addons/info/src/__snapshots__/index.test.js.snap @@ -138,7 +138,6 @@ exports[`addon Info should render and external markdown 1`] = ` "background": "white", "bottom": 0, "display": "none", - "fontFamily": "Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif", "left": 0, "overflow": "auto", "padding": "0 40px", @@ -179,6 +178,8 @@ exports[`addon Info should render and external markdown 1`] = ` "backgroundColor": "#fff", "border": "1px solid #eee", "borderRadius": "2px", + "color": "black", + "fontFamily": "Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif", "fontSize": "15px", "fontWeight": 300, "lineHeight": 1.45, @@ -1392,7 +1393,6 @@ containing **bold**, *cursive* text, \`code\` and [a link](https://github.com)" "background": "white", "bottom": 0, "display": "none", - "fontFamily": "Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif", "left": 0, "overflow": "auto", "padding": "0 40px", @@ -1433,6 +1433,8 @@ containing **bold**, *cursive* text, \`code\` and [a link](https://github.com)" "backgroundColor": "#fff", "border": "1px solid #eee", "borderRadius": "2px", + "color": "black", + "fontFamily": "Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif", "fontSize": "15px", "fontWeight": 300, "lineHeight": 1.45, @@ -2634,6 +2636,8 @@ exports[`addon Info should render component description if story kind matches co "backgroundColor": "#fff", "border": "1px solid #eee", "borderRadius": "2px", + "color": "black", + "fontFamily": "Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif", "fontSize": "15px", "fontWeight": 300, "lineHeight": 1.45, @@ -2756,6 +2760,8 @@ exports[`addon Info should render component description if story kind matches co "backgroundColor": "#fff", "border": "1px solid #eee", "borderRadius": "2px", + "color": "black", + "fontFamily": "Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif", "fontSize": "15px", "fontWeight": 300, "lineHeight": 1.45, @@ -3849,6 +3855,8 @@ exports[`addon Info should render component description if story name matches co "backgroundColor": "#fff", "border": "1px solid #eee", "borderRadius": "2px", + "color": "black", + "fontFamily": "Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif", "fontSize": "15px", "fontWeight": 300, "lineHeight": 1.45, @@ -3971,6 +3979,8 @@ exports[`addon Info should render component description if story name matches co "backgroundColor": "#fff", "border": "1px solid #eee", "borderRadius": "2px", + "color": "black", + "fontFamily": "Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif", "fontSize": "15px", "fontWeight": 300, "lineHeight": 1.45, diff --git a/addons/info/src/components/Story.js b/addons/info/src/components/Story.js index 89826ad7e10c..1780c717f867 100644 --- a/addons/info/src/components/Story.js +++ b/addons/info/src/components/Story.js @@ -35,7 +35,6 @@ const stylesheetBase = { }, }, info: { - fontFamily: 'Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif', position: 'fixed', background: 'white', top: 0, @@ -51,6 +50,8 @@ const stylesheetBase = { zIndex: 0, }, infoBody: { + fontFamily: 'Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif', + color: 'black', fontWeight: 300, lineHeight: 1.45, fontSize: '15px', diff --git a/examples/cra-kitchen-sink/src/stories/__snapshots__/index.stories.storyshot b/examples/cra-kitchen-sink/src/stories/__snapshots__/index.stories.storyshot index 43ab3a7cde50..360530f820ba 100644 --- a/examples/cra-kitchen-sink/src/stories/__snapshots__/index.stories.storyshot +++ b/examples/cra-kitchen-sink/src/stories/__snapshots__/index.stories.storyshot @@ -28,7 +28,7 @@ exports[`Storyshots Button with new info 1`] = `