From 0a2c17e1a8011ee6e7a6cadaaf259f0b2118c2ec Mon Sep 17 00:00:00 2001 From: Arman Date: Sun, 17 Mar 2019 01:46:28 +0300 Subject: [PATCH] Merge pull request #6124 from aamct2/fix-missing-button-titles Add missing button titles --- .../__snapshots__/storyshots.test.js.snap | 297 ++++---- .../__snapshots__/preview.stories.storyshot | 658 +++++++++--------- 2 files changed, 450 insertions(+), 505 deletions(-) diff --git a/examples/official-storybook/tests/__snapshots__/storyshots.test.js.snap b/examples/official-storybook/tests/__snapshots__/storyshots.test.js.snap index bb6ccc5ba63e..ea76a04f65c0 100644 --- a/examples/official-storybook/tests/__snapshots__/storyshots.test.js.snap +++ b/examples/official-storybook/tests/__snapshots__/storyshots.test.js.snap @@ -3328,73 +3328,16 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = ` } .emotion-8 { + overflow-y: hidden; + overflow-x: auto; color: #999999; + width: 100%; height: 40px; - overflow: auto; - overflow-x: auto; - overflow-y: hidden; - -webkit-scrollbar-width: slim; - -moz-scrollbar-width: slim; - -ms-scrollbar-width: slim; - scrollbar-width: slim; - -webkit-scrollbar-width: 3px; - -moz-scrollbar-width: 3px; - -ms-scrollbar-width: 3px; - scrollbar-width: 3px; - -webkit-scrollbar-color: transparent transparent; - -moz-scrollbar-color: transparent transparent; - -ms-scrollbar-color: transparent transparent; - scrollbar-color: transparent transparent; - background: #FFFFFF linear-gradient(to bottom,transparent calc(100% - 1px),rgba(0,0,0,.1) calc(100% - 1px)); -} - -.emotion-8:hover { - -webkit-scrollbar-width: none; - -moz-scrollbar-width: none; - -ms-scrollbar-width: none; - scrollbar-width: none; - -webkit-scrollbar-width: 0; - -moz-scrollbar-width: 0; - -ms-scrollbar-width: 0; - scrollbar-width: 0; -} - -.emotion-8::-webkit-scrollbar { - height: 3px; - width: 3px; - background: transparent; - box-shadow: none; - display: none; -} - -.emotion-8:hover::-webkit-scrollbar { - height: 3px; - width: 3px; - background: transparent; - display: block; -} - -.emotion-8::-webkit-scrollbar-track { - border-radius: 0; - background: transparent; - opacity: 0; - border: 0 none; - box-shadow: none; - height: 0; - width: 0; -} - -.emotion-8::-webkit-scrollbar-thumb { - border-radius: 0; - background: rgba(0,0,0,.1); - box-shadow: none; -} - -.emotion-8::-webkit-scrollbar-track-piece { - display: none; - border: 0 none; - opacity: 0; - visibility: hidden; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + box-shadow: rgba(0,0,0,.1) 0 -1px 0 0 inset; + background: #FFFFFF; } .emotion-7 { @@ -3407,7 +3350,12 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = ` -ms-flex-pack: justify; justify-content: space-between; position: relative; - white-space: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; height: 40px; } @@ -3416,6 +3364,7 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; + white-space: nowrap; -webkit-flex-basis: auto; -ms-flex-preferred-size: auto; flex-basis: auto; @@ -3486,6 +3435,7 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; + white-space: nowrap; -webkit-flex-basis: auto; -ms-flex-preferred-size: auto; flex-basis: auto; @@ -3515,12 +3465,23 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = ` display: block; position: relative; font-size: 13px; - position: relative; + height: calc(100% - 40px); + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 40px; + overflow: auto; +} + +.emotion-99 > *:first-child { + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + height: 100%; overflow: auto; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - width: 100%; } .emotion-5 { @@ -3859,73 +3820,16 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = ` } .emotion-8 { + overflow-y: hidden; + overflow-x: auto; color: #999999; + width: 100%; height: 40px; - overflow: auto; - overflow-x: auto; - overflow-y: hidden; - -webkit-scrollbar-width: slim; - -moz-scrollbar-width: slim; - -ms-scrollbar-width: slim; - scrollbar-width: slim; - -webkit-scrollbar-width: 3px; - -moz-scrollbar-width: 3px; - -ms-scrollbar-width: 3px; - scrollbar-width: 3px; - -webkit-scrollbar-color: transparent transparent; - -moz-scrollbar-color: transparent transparent; - -ms-scrollbar-color: transparent transparent; - scrollbar-color: transparent transparent; - background: #FFFFFF linear-gradient(to bottom,transparent calc(100% - 1px),rgba(0,0,0,.1) calc(100% - 1px)); -} - -.emotion-8:hover { - -webkit-scrollbar-width: none; - -moz-scrollbar-width: none; - -ms-scrollbar-width: none; - scrollbar-width: none; - -webkit-scrollbar-width: 0; - -moz-scrollbar-width: 0; - -ms-scrollbar-width: 0; - scrollbar-width: 0; -} - -.emotion-8::-webkit-scrollbar { - height: 3px; - width: 3px; - background: transparent; - box-shadow: none; - display: none; -} - -.emotion-8:hover::-webkit-scrollbar { - height: 3px; - width: 3px; - background: transparent; - display: block; -} - -.emotion-8::-webkit-scrollbar-track { - border-radius: 0; - background: transparent; - opacity: 0; - border: 0 none; - box-shadow: none; - height: 0; - width: 0; -} - -.emotion-8::-webkit-scrollbar-thumb { - border-radius: 0; - background: rgba(0,0,0,.1); - box-shadow: none; -} - -.emotion-8::-webkit-scrollbar-track-piece { - display: none; - border: 0 none; - opacity: 0; - visibility: hidden; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + box-shadow: rgba(0,0,0,.1) 0 -1px 0 0 inset; + background: #FFFFFF; } .emotion-7 { @@ -3938,7 +3842,12 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = ` -ms-flex-pack: justify; justify-content: space-between; position: relative; - white-space: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; height: 40px; } @@ -3947,6 +3856,7 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; + white-space: nowrap; -webkit-flex-basis: auto; -ms-flex-preferred-size: auto; flex-basis: auto; @@ -4017,6 +3927,7 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; + white-space: nowrap; -webkit-flex-basis: auto; -ms-flex-preferred-size: auto; flex-basis: auto; @@ -4046,12 +3957,23 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = ` display: block; position: relative; font-size: 13px; - position: relative; + height: calc(100% - 40px); + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 40px; + overflow: auto; +} + +.emotion-99 > *:first-child { + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + height: 100%; overflow: auto; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; - width: 100%; } .emotion-5 { @@ -4381,43 +4303,84 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = ` >
- -
+ class="simplebar-height-auto-observer" + />
- +
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
- - - - -
- - - - +
+ + + + + +
+
+ + + + +
+
+
+
+
+
+
+
+
+
+
, .emotion-2 { @@ -375,7 +366,12 @@ Array [ -ms-flex-pack: justify; justify-content: space-between; position: relative; - white-space: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; height: 40px; } @@ -384,6 +380,7 @@ Array [ display: -webkit-flex; display: -ms-flexbox; display: flex; + white-space: nowrap; -webkit-flex-basis: auto; -ms-flex-preferred-size: auto; flex-basis: auto; @@ -499,6 +496,7 @@ Array [ display: -webkit-flex; display: -ms-flexbox; display: flex; + white-space: nowrap; -webkit-flex-basis: auto; -ms-flex-preferred-size: auto; flex-basis: auto; @@ -525,24 +523,16 @@ Array [ } .emotion-29 { + overflow-y: hidden; + overflow-x: auto; color: #999999; + width: 100%; height: 40px; - overflow: auto; - overflow-x: auto; - overflow-y: hidden; - -webkit-scrollbar-width: slim; - -moz-scrollbar-width: slim; - -ms-scrollbar-width: slim; - scrollbar-width: slim; - -webkit-scrollbar-width: 3px; - -moz-scrollbar-width: 3px; - -ms-scrollbar-width: 3px; - scrollbar-width: 3px; - -webkit-scrollbar-color: transparent transparent; - -moz-scrollbar-color: transparent transparent; - -ms-scrollbar-color: transparent transparent; - scrollbar-color: transparent transparent; - background: #FFFFFF linear-gradient(to bottom,transparent calc(100% - 1px),rgba(0,0,0,.1) calc(100% - 1px)); + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; + box-shadow: rgba(0,0,0,.1) 0 -1px 0 0 inset; + background: #FFFFFF; position: absolute; left: 0; right: 0; @@ -554,55 +544,6 @@ Array [ tranform: translateY(0px); } -.emotion-29:hover { - -webkit-scrollbar-width: none; - -moz-scrollbar-width: none; - -ms-scrollbar-width: none; - scrollbar-width: none; - -webkit-scrollbar-width: 0; - -moz-scrollbar-width: 0; - -ms-scrollbar-width: 0; - scrollbar-width: 0; -} - -.emotion-29::-webkit-scrollbar { - height: 3px; - width: 3px; - background: transparent; - box-shadow: none; - display: none; -} - -.emotion-29:hover::-webkit-scrollbar { - height: 3px; - width: 3px; - background: transparent; - display: block; -} - -.emotion-29::-webkit-scrollbar-track { - border-radius: 0; - background: transparent; - opacity: 0; - border: 0 none; - box-shadow: none; - height: 0; - width: 0; -} - -.emotion-29::-webkit-scrollbar-thumb { - border-radius: 0; - background: rgba(0,0,0,.1); - box-shadow: none; -} - -.emotion-29::-webkit-scrollbar-track-piece { - display: none; - border: 0 none; - opacity: 0; - visibility: hidden; -} - .emotion-8 { height: 40px; background: none; @@ -652,136 +593,177 @@ Array [
- - - - - -
- - - - +
+ + + + + + + +
+
+ + + + +
+
+
+
+
+
+
+
+
+
+
, .emotion-2 {