From e297eb7669384621591d54ed7d79032dade6ceca Mon Sep 17 00:00:00 2001 From: Sara Vieira Date: Fri, 22 Dec 2017 14:37:57 +0000 Subject: [PATCH] fix(my-joy-beta): fix small tag bugs --- .../__snapshots__/key-value.spec.js.snap | 35 ------------------- .../__tests__/__snapshots__/tags.spec.js.snap | 10 ------ .../src/components/instances/key-value.js | 5 ++- .../__tests__/__snapshots__/tags.spec.js.snap | 15 -------- 4 files changed, 2 insertions(+), 63 deletions(-) diff --git a/packages/my-joy-beta/src/components/instances/__tests__/__snapshots__/key-value.spec.js.snap b/packages/my-joy-beta/src/components/instances/__tests__/__snapshots__/key-value.spec.js.snap index 4f940d6a..ae5ce089 100644 --- a/packages/my-joy-beta/src/components/instances/__tests__/__snapshots__/key-value.spec.js.snap +++ b/packages/my-joy-beta/src/components/instances/__tests__/__snapshots__/key-value.spec.js.snap @@ -67,11 +67,6 @@ exports[`renders without throwing 1`] = ` -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; - width: 100%; - height: 100%; - -webkit-flex-basis: 100%; - -ms-flex-preferred-size: 100%; - flex-basis: 100%; } .c7 { @@ -1205,11 +1200,6 @@ exports[`renders without throwing 1`] = ` -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; - width: 100%; - height: 100%; - -webkit-flex-basis: 100%; - -ms-flex-preferred-size: 100%; - flex-basis: 100%; } .c7 { @@ -3157,11 +3147,6 @@ exports[`renders without throwing 1`] = ` -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; - width: 100%; - height: 100%; - -webkit-flex-basis: 100%; - -ms-flex-preferred-size: 100%; - flex-basis: 100%; } .c7 { @@ -4113,11 +4098,6 @@ exports[`renders without throwing 1`] = ` -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; - width: 100%; - height: 100%; - -webkit-flex-basis: 100%; - -ms-flex-preferred-size: 100%; - flex-basis: 100%; } .c7 { @@ -5066,11 +5046,6 @@ exports[`renders without throwing 1`] = ` -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; - width: 100%; - height: 100%; - -webkit-flex-basis: 100%; - -ms-flex-preferred-size: 100%; - flex-basis: 100%; } .c7 { @@ -6091,11 +6066,6 @@ exports[`renders without throwing 1`] = ` -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; - width: 100%; - height: 100%; - -webkit-flex-basis: 100%; - -ms-flex-preferred-size: 100%; - flex-basis: 100%; } .c7 { @@ -7185,11 +7155,6 @@ exports[`renders without throwing 1`] = ` -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; - width: 100%; - height: 100%; - -webkit-flex-basis: 100%; - -ms-flex-preferred-size: 100%; - flex-basis: 100%; } .c7 { diff --git a/packages/my-joy-beta/src/components/instances/__tests__/__snapshots__/tags.spec.js.snap b/packages/my-joy-beta/src/components/instances/__tests__/__snapshots__/tags.spec.js.snap index 9b60ad65..fe07f429 100644 --- a/packages/my-joy-beta/src/components/instances/__tests__/__snapshots__/tags.spec.js.snap +++ b/packages/my-joy-beta/src/components/instances/__tests__/__snapshots__/tags.spec.js.snap @@ -731,11 +731,6 @@ exports[`renders without throwing 1`] = ` -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; - width: 100%; - height: 100%; - -webkit-flex-basis: 100%; - -ms-flex-preferred-size: 100%; - flex-basis: 100%; } .c7 { @@ -1702,11 +1697,6 @@ exports[`renders without throwing 1`] = ` -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; - width: 100%; - height: 100%; - -webkit-flex-basis: 100%; - -ms-flex-preferred-size: 100%; - flex-basis: 100%; } .c7 { diff --git a/packages/my-joy-beta/src/components/instances/key-value.js b/packages/my-joy-beta/src/components/instances/key-value.js index 7be18b8d..b76f6694 100644 --- a/packages/my-joy-beta/src/components/instances/key-value.js +++ b/packages/my-joy-beta/src/components/instances/key-value.js @@ -79,7 +79,7 @@ const TextareaKeyValue = ({ type, submitting }) => [ ]; const InputKeyValue = ({ type, submitting }) => ( - + {titleCase(type)} key @@ -132,8 +132,7 @@ export const KeyValue = ({ name="name" type="text" component={({ input = {} }) => - !expanded ? `${input.value}: ` : {`${input.value}: `} - } + !expanded ? `${input.value}: ` : {`${input.value}: `}} /> without throwing 1`] = ` -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; - width: 100%; - height: 100%; - -webkit-flex-basis: 100%; - -ms-flex-preferred-size: 100%; - flex-basis: 100%; } .c22 { @@ -2927,11 +2922,6 @@ exports[`renders without throwing 1`] = ` -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; - width: 100%; - height: 100%; - -webkit-flex-basis: 100%; - -ms-flex-preferred-size: 100%; - flex-basis: 100%; } .c22 { @@ -4433,11 +4423,6 @@ exports[`renders without throwing 1`] = ` -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; - width: 100%; - height: 100%; - -webkit-flex-basis: 100%; - -ms-flex-preferred-size: 100%; - flex-basis: 100%; } .c22 {