diff --git a/consoles/my-joy-instances/src/containers/instances/__tests__/__snapshots__/cns.spec.js.snap b/consoles/my-joy-instances/src/containers/instances/__tests__/__snapshots__/cns.spec.js.snap index d57745f9..c4b0f25e 100644 --- a/consoles/my-joy-instances/src/containers/instances/__tests__/__snapshots__/cns.spec.js.snap +++ b/consoles/my-joy-instances/src/containers/instances/__tests__/__snapshots__/cns.spec.js.snap @@ -66,15 +66,15 @@ exports[`renders without throwing 1`] = ` margin-bottom: 1.875rem; } -.c27 { +.c28 { margin-top: 0.1875rem; } -.c29 { +.c30 { margin-left: 0.75rem; } -.c35 { +.c36 { margin-left: 0.375rem; } @@ -82,7 +82,7 @@ exports[`renders without throwing 1`] = ` padding: 1.875rem; } -.c33 { +.c34 { font-family: sans-serif; font-size: 100%; line-height: 1.15; @@ -94,18 +94,18 @@ exports[`renders without throwing 1`] = ` appearance: button; } -.c33::-moz-focus-inner, -.c33[type='button']::-moz-focus-inner, -.c33[type='reset']::-moz-focus-inner, -.c33[type='submit']::-moz-focus-inner { +.c34::-moz-focus-inner, +.c34[type='button']::-moz-focus-inner, +.c34[type='reset']::-moz-focus-inner, +.c34[type='submit']::-moz-focus-inner { border-style: none; padding: 0; } -.c33:-moz-focusring, -.c33[type='button']:-moz-focusring, -.c33[type='reset']:-moz-focusring, -.c33[type='submit']:-moz-focusring { +.c34:-moz-focusring, +.c34[type='button']:-moz-focusring, +.c34[type='reset']:-moz-focusring, +.c34[type='submit']:-moz-focusring { outline: 0.0625rem dotted ButtonText; } @@ -116,15 +116,15 @@ exports[`renders without throwing 1`] = ` font-size: 0.9375rem; } -.c32 { +.c33 { min-width: 7.5rem; } -.c31 { +.c32 { display: inline-block; } -.c30 { +.c31 { box-sizing: border-box; display: inline-block; -webkit-box-pack: center; @@ -163,7 +163,7 @@ exports[`renders without throwing 1`] = ` border: solid 0.0625rem rgb(45,56,132); } -.c30:focus { +.c31:focus { outline: 0; -webkit-text-decoration: none; text-decoration: none; @@ -171,26 +171,26 @@ exports[`renders without throwing 1`] = ` border-color: rgb(45,56,132); } -.c30:hover { +.c31:hover { background-color: rgb(72,83,217); border: solid 0.0625rem rgb(45,56,132); } -.c30:active, -.c30:active:hover, -.c30:active:focus { +.c31:active, +.c31:active:hover, +.c31:active:focus { background-image: none; outline: 0; background-color: rgb(45,56,132); border-color: rgb(45,56,132); } -.c30[disabled] { +.c31[disabled] { cursor: not-allowed; pointer-events: none; } -.c26 { +.c27 { font-size: 0.9375rem; line-height: 1.125rem; font-style: normal; @@ -243,7 +243,7 @@ exports[`renders without throwing 1`] = ` flex-direction: column; } -.c21 { +.c22 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -270,7 +270,7 @@ exports[`renders without throwing 1`] = ` align-items: flex-end; } -.c23 { +.c24 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -290,7 +290,7 @@ exports[`renders without throwing 1`] = ` align-content: stretch; } -.c34 { +.c35 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -314,7 +314,7 @@ exports[`renders without throwing 1`] = ` align-items: center; } -.c22 { +.c23 { -webkit-order: 0; -ms-flex-order: 0; order: 0; @@ -369,7 +369,7 @@ exports[`renders without throwing 1`] = ` background-color: transparent; } -.c24 { +.c25 { display: inline-block; padding: 0; border: none; @@ -381,7 +381,7 @@ exports[`renders without throwing 1`] = ` -webkit-padding-after: 0; } -.c28 { +.c29 { box-sizing: border-box; width: 18.75rem; height: 3rem; @@ -403,52 +403,52 @@ exports[`renders without throwing 1`] = ` text-overflow: ellipsis; } -.c28:focus { +.c29:focus { border-color: rgb(59,70,204); outline: 0; } -.c28::-webkit-input-placeholder { +.c29::-webkit-input-placeholder { color: rgba(73,73,73,0.5); } -.c28::-moz-placeholder { +.c29::-moz-placeholder { color: rgba(73,73,73,0.5); } -.c28:-ms-input-placeholder { +.c29:-ms-input-placeholder { color: rgba(73,73,73,0.5); } -.c28:invalid { +.c29:invalid { box-shadow: none; } -.c28:disabled { +.c29:disabled { background-color: rgb(250,250,250); color: rgb(216,216,216); cursor: not-allowed; } -.c28:disabled::-webkit-input-placeholder { +.c29:disabled::-webkit-input-placeholder { color: rgba(73,73,73,0.5); } -.c28:disabled::-moz-placeholder { +.c29:disabled::-moz-placeholder { color: rgba(73,73,73,0.5); } -.c28:disabled:-ms-input-placeholder { +.c29:disabled:-ms-input-placeholder { color: rgba(73,73,73,0.5); } -.c25 { +.c26 { font-weight: 600; white-space: pre; font-size: 0.8125rem; } -.c36 { +.c37 { position: relative; vertical-align: text-bottom; display: -webkit-box; @@ -461,27 +461,27 @@ exports[`renders without throwing 1`] = ` align-items: center; } -.c38 { +.c39 { display: none; } -.c38:checked + label { +.c39:checked + label { background: #3B46CC; border: 0.0625rem solid rgb(59,70,204); } -.c38:checked + label:after { +.c39:checked + label:after { -webkit-transform: translateX(100%); -ms-transform: translateX(100%); transform: translateX(100%); box-shadow: 0 0 0 0.0625rem rgb(59,70,204); } -.c38:checked + label:active { +.c39:checked + label:active { box-shadow: none; } -.c39 { +.c40 { outline: 0; display: block; width: 2.875rem; @@ -500,24 +500,24 @@ exports[`renders without throwing 1`] = ` border: 0.0625rem solid rgb(216,216,216); } -.c39::selection { +.c40::selection { background: none; } -.c39:active { +.c40:active { box-shadow: inset 0 0 0 1.5rem rgb(216,216,216); } -.c39:hover { +.c40:hover { border: 0.0625rem solid rgb(59,70,204); } -.c39:hover:after { +.c40:hover:after { box-shadow: 0 0 0 0.0625rem rgb(59,70,204); } -.c39:after, -.c39:before { +.c40:after, +.c40:before { position: relative; display: block; content: ''; @@ -525,7 +525,7 @@ exports[`renders without throwing 1`] = ` height: 100%; } -.c39:after { +.c40:after { -webkit-transform: translateX(0%); -ms-transform: translateX(0%); transform: translateX(0%); @@ -537,11 +537,11 @@ exports[`renders without throwing 1`] = ` box-shadow: 0 0 0 0.0625rem rgb(216,216,216); } -.c39:active { +.c40:active { box-shadow: inset 0 0 0 2em rgb(216,216,216); } -.c39:before { +.c40:before { display: none; } @@ -557,7 +557,7 @@ exports[`renders without throwing 1`] = ` margin: 0; } -.c37 { +.c38 { margin: 0 6px; } @@ -566,6 +566,10 @@ exports[`renders without throwing 1`] = ` margin-right: 0; } +.c21 { + margin-bottom: 0; +} + @media only screen and (min-width:48em) { .c1 { width: 46rem; @@ -733,66 +737,69 @@ exports[`renders without throwing 1`] = `

-
-
-
- + Attach to new CNS service name + +
+ > + +
-
-
- + +
- -
+ + @@ -804,30 +811,30 @@ exports[`renders without throwing 1`] = ` className="c2" >
without throwing 1`] = ` />
-
-
-
- + +
+ +
-
-
- + +
-
- + +
@@ -2571,7 +2585,7 @@ exports[`renders without throwing 1`] = `
without throwing 1`] = `
without throwing 1`] = `
without throwing 1`] = `
without throwing 1`] = `
without throwing 1`] = ` className="c2" >
without throwing 1`] = ` />
-
-
-
- + Attach to new CNS service name + +
+ > + +
-
-
- + +
-
- + +
@@ -4176,11 +4197,11 @@ exports[`renders without throwing 1`] = ` margin-top: 0.1875rem; } -.c44 { +.c40 { margin-left: 0.75rem; } -.c53 { +.c54 { margin-left: 0.375rem; } @@ -4193,21 +4214,21 @@ exports[`renders without throwing 1`] = ` margin-bottom: 0.1875rem; } -.c36 { +.c45 { margin-top: 0.375rem; } -.c39 { +.c48 { margin-right: 0.375rem; margin-bottom: 0.375rem; } -.c49 { +.c50 { margin-top: 0.1875rem; margin-bottom: 0.375rem; } -.c50 { +.c51 { margin-bottom: 0rem; } @@ -4219,7 +4240,7 @@ exports[`renders without throwing 1`] = ` font-size: 80%; } -.c48 { +.c44 { font-family: sans-serif; font-size: 100%; line-height: 1.15; @@ -4231,18 +4252,18 @@ exports[`renders without throwing 1`] = ` appearance: button; } -.c48::-moz-focus-inner, -.c48[type='button']::-moz-focus-inner, -.c48[type='reset']::-moz-focus-inner, -.c48[type='submit']::-moz-focus-inner { +.c44::-moz-focus-inner, +.c44[type='button']::-moz-focus-inner, +.c44[type='reset']::-moz-focus-inner, +.c44[type='submit']::-moz-focus-inner { border-style: none; padding: 0; } -.c48:-moz-focusring, -.c48[type='button']:-moz-focusring, -.c48[type='reset']:-moz-focusring, -.c48[type='submit']:-moz-focusring { +.c44:-moz-focusring, +.c44[type='button']:-moz-focusring, +.c44[type='reset']:-moz-focusring, +.c44[type='submit']:-moz-focusring { outline: 0.0625rem dotted ButtonText; } @@ -4253,15 +4274,15 @@ exports[`renders without throwing 1`] = ` font-size: 0.9375rem; } -.c47 { +.c43 { min-width: 7.5rem; } -.c46 { +.c42 { display: inline-block; } -.c45 { +.c41 { box-sizing: border-box; display: inline-block; -webkit-box-pack: center; @@ -4300,7 +4321,7 @@ exports[`renders without throwing 1`] = ` border: solid 0.0625rem rgb(45,56,132); } -.c45:focus { +.c41:focus { outline: 0; -webkit-text-decoration: none; text-decoration: none; @@ -4308,26 +4329,26 @@ exports[`renders without throwing 1`] = ` border-color: rgb(45,56,132); } -.c45:hover { +.c41:hover { background-color: rgb(72,83,217); border: solid 0.0625rem rgb(45,56,132); } -.c45:active, -.c45:active:hover, -.c45:active:focus { +.c41:active, +.c41:active:hover, +.c41:active:focus { background-image: none; outline: 0; background-color: rgb(45,56,132); border-color: rgb(45,56,132); } -.c45[disabled] { +.c41[disabled] { cursor: not-allowed; pointer-events: none; } -.c35 { +.c38 { font-size: 0.9375rem; line-height: 1.125rem; font-style: normal; @@ -4395,7 +4416,7 @@ exports[`renders without throwing 1`] = ` flex-direction: column; } -.c41 { +.c35 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -4442,7 +4463,7 @@ exports[`renders without throwing 1`] = ` align-content: stretch; } -.c51 { +.c52 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -4521,7 +4542,7 @@ exports[`renders without throwing 1`] = ` background-color: transparent; } -.c42 { +.c36 { display: inline-block; padding: 0; border: none; @@ -4626,7 +4647,7 @@ exports[`renders without throwing 1`] = ` color: rgb(73,73,73); } -.c43 { +.c39 { box-sizing: border-box; width: 18.75rem; height: 3rem; @@ -4651,71 +4672,71 @@ exports[`renders without throwing 1`] = ` text-overflow: ellipsis; } -.c43:focus { +.c39:focus { border-color: rgb(59,70,204); outline: 0; } -.c43::-webkit-input-placeholder { +.c39::-webkit-input-placeholder { color: rgba(73,73,73,0.5); } -.c43::-moz-placeholder { +.c39::-moz-placeholder { color: rgba(73,73,73,0.5); } -.c43:-ms-input-placeholder { +.c39:-ms-input-placeholder { color: rgba(73,73,73,0.5); } -.c43:invalid { +.c39:invalid { box-shadow: none; } -.c43::-webkit-input-placeholder { +.c39::-webkit-input-placeholder { color: rgb(216,216,216); } -.c43::-moz-placeholder { +.c39::-moz-placeholder { color: rgb(216,216,216); } -.c43:-ms-input-placeholder { +.c39:-ms-input-placeholder { color: rgb(216,216,216); } -.c43:disabled { +.c39:disabled { background-color: rgb(250,250,250); color: rgb(216,216,216); cursor: not-allowed; } -.c43:disabled::-webkit-input-placeholder { +.c39:disabled::-webkit-input-placeholder { color: rgba(73,73,73,0.5); } -.c43:disabled::-moz-placeholder { +.c39:disabled::-moz-placeholder { color: rgba(73,73,73,0.5); } -.c43:disabled:-ms-input-placeholder { +.c39:disabled:-ms-input-placeholder { color: rgba(73,73,73,0.5); } -.c34 { +.c37 { font-weight: 600; white-space: pre; font-size: 0.8125rem; } -.c52 { +.c53 { font-weight: 600; white-space: pre; font-size: 0.8125rem; color: rgb(216,216,216); } -.c54 { +.c55 { position: relative; vertical-align: text-bottom; display: -webkit-box; @@ -4728,36 +4749,36 @@ exports[`renders without throwing 1`] = ` align-items: center; } -.c56 { +.c57 { display: none; } -.c56:checked + label { +.c57:checked + label { background: #3B46CC; border: 0.0625rem solid rgb(59,70,204); } -.c56:checked + label:after { +.c57:checked + label:after { -webkit-transform: translateX(100%); -ms-transform: translateX(100%); transform: translateX(100%); box-shadow: 0 0 0 0.0625rem rgb(59,70,204); } -.c56:checked + label:active { +.c57:checked + label:active { box-shadow: none; } -.c56:checked + label { +.c57:checked + label { background: rgb(250,250,250); border: 0.0625rem solid rgb(216,216,216); } -.c56:checked + label:after { +.c57:checked + label:after { box-shadow: 0 0 0 0.0625rem rgb(216,216,216); } -.c57 { +.c58 { outline: 0; display: block; width: 2.875rem; @@ -4777,24 +4798,24 @@ exports[`renders without throwing 1`] = ` cursor: not-allowed; } -.c57::selection { +.c58::selection { background: none; } -.c57:active { +.c58:active { box-shadow: inset 0 0 0 1.5rem rgb(216,216,216); } -.c57:hover { +.c58:hover { border: 0.0625rem solid rgb(59,70,204); } -.c57:hover:after { +.c58:hover:after { box-shadow: 0 0 0 0.0625rem rgb(59,70,204); } -.c57:after, -.c57:before { +.c58:after, +.c58:before { position: relative; display: block; content: ''; @@ -4802,7 +4823,7 @@ exports[`renders without throwing 1`] = ` height: 100%; } -.c57:after { +.c58:after { -webkit-transform: translateX(0%); -ms-transform: translateX(0%); transform: translateX(0%); @@ -4814,36 +4835,36 @@ exports[`renders without throwing 1`] = ` box-shadow: 0 0 0 0.0625rem rgb(216,216,216); } -.c57:active { +.c58:active { box-shadow: inset 0 0 0 2em rgb(216,216,216); } -.c57:before { +.c58:before { display: none; } -.c57:active { +.c58:active { box-shadow: none; } -.c57:active:after { +.c58:active:after { padding-right: 0; } -.c57:before { +.c58:before { cursor: not-allowed; } -.c57:after { +.c58:after { cursor: not-allowed; background: rgb(230,230,230); } -.c57:hover { +.c58:hover { border: 0.0625rem solid rgb(216,216,216); } -.c57:hover:after { +.c58:hover:after { box-shadow: 0 0 0 0.0625rem rgb(216,216,216); } @@ -4871,7 +4892,7 @@ exports[`renders without throwing 1`] = ` cursor: pointer; } -.c40 { +.c49 { border: 0.0625rem solid rgb(216,216,216); box-sizing: border-box; border-radius: 0.125rem; @@ -4894,7 +4915,7 @@ exports[`renders without throwing 1`] = ` border: 0.0625rem solid rgb(45,56,132); } -.c38 { +.c47 { margin: 0; padding: 0; display: -webkit-box; @@ -4911,7 +4932,7 @@ exports[`renders without throwing 1`] = ` font-weight: 200; } -.c37 { +.c46 { margin-bottom: -0.375rem; } @@ -4929,7 +4950,7 @@ exports[`renders without throwing 1`] = ` margin: 0; } -.c55 { +.c56 { margin: 0 6px; } @@ -4938,6 +4959,10 @@ exports[`renders without throwing 1`] = ` margin-right: 0; } +.c34 { + margin-bottom: 0; +} + @media only screen and (min-width:48em) { .c1 { width: 46rem; @@ -5335,26 +5360,89 @@ exports[`renders without throwing 1`] = `

+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+ +
+
+
+
+
  • @@ -5362,10 +5450,10 @@ exports[`renders without throwing 1`] = `
  • @@ -5373,10 +5461,10 @@ exports[`renders without throwing 1`] = `
  • @@ -5386,66 +5474,6 @@ exports[`renders without throwing 1`] = `
-
-
-
-
-
- -
- -
-
-
-
-
-
- -
-
-
-
@@ -5500,7 +5528,7 @@ exports[`renders without throwing 1`] = `
without throwing 1`] = `
without throwing 1`] = `
without throwing 1`] = `
without throwing 1`] = `
without throwing 1`] = ` className="c2" >
without throwing 1`] = ` />
-
-
-
- + Attach to new CNS service name + +
+ > + +
-
-
- + +
-
- + +
@@ -6832,30 +6867,30 @@ exports[`renders without throwing 1`] = ` className="c2" >
without throwing 1`] = ` />
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+ +
+
+
+
+
  • serbice without throwing 1`] = `
  • dssasda without throwing 1`] = `
  • dsasd without throwing 1`] = `
-
-
-
-
-
- -
- -
-
-
-
-
-
- -
-
-
-
@@ -7860,30 +7902,30 @@ exports[`renders without throwing 1`] = ` className="c2" >
without throwing 1`] = ` />
- + +
`; exports[`renders without throwing 1`] = ` -.c6 { - margin-top: 0.1875rem; +.c0 { + margin-bottom: 1.125rem; } .c8 { + margin-top: 0.1875rem; +} + +.c10 { margin-left: 0.75rem; } -.c0 { +.c2 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -361,7 +376,7 @@ exports[`renders without throwing 1`] = ` align-items: flex-end; } -.c2 { +.c4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -381,7 +396,7 @@ exports[`renders without throwing 1`] = ` align-content: stretch; } -.c1 { +.c3 { -webkit-order: 0; -ms-flex-order: 0; order: 0; @@ -398,7 +413,7 @@ exports[`renders without throwing 1`] = ` display: block; } -.c12 { +.c14 { font-family: sans-serif; font-size: 100%; line-height: 1.15; @@ -410,30 +425,30 @@ exports[`renders without throwing 1`] = ` appearance: button; } -.c12::-moz-focus-inner, -.c12[type='button']::-moz-focus-inner, -.c12[type='reset']::-moz-focus-inner, -.c12[type='submit']::-moz-focus-inner { +.c14::-moz-focus-inner, +.c14[type='button']::-moz-focus-inner, +.c14[type='reset']::-moz-focus-inner, +.c14[type='submit']::-moz-focus-inner { border-style: none; padding: 0; } -.c12:-moz-focusring, -.c12[type='button']:-moz-focusring, -.c12[type='reset']:-moz-focusring, -.c12[type='submit']:-moz-focusring { +.c14:-moz-focusring, +.c14[type='button']:-moz-focusring, +.c14[type='reset']:-moz-focusring, +.c14[type='submit']:-moz-focusring { outline: 0.0625rem dotted ButtonText; } -.c11 { +.c13 { min-width: 7.5rem; } -.c10 { +.c12 { display: inline-block; } -.c9 { +.c11 { box-sizing: border-box; display: inline-block; -webkit-box-pack: center; @@ -472,7 +487,7 @@ exports[`renders without throwing 1`] = ` border: solid 0.0625rem rgb(45,56,132); } -.c9:focus { +.c11:focus { outline: 0; -webkit-text-decoration: none; text-decoration: none; @@ -480,26 +495,26 @@ exports[`renders without throwing 1`] = ` border-color: rgb(45,56,132); } -.c9:hover { +.c11:hover { background-color: rgb(72,83,217); border: solid 0.0625rem rgb(45,56,132); } -.c9:active, -.c9:active:hover, -.c9:active:focus { +.c11:active, +.c11:active:hover, +.c11:active:focus { background-image: none; outline: 0; background-color: rgb(45,56,132); border-color: rgb(45,56,132); } -.c9[disabled] { +.c11[disabled] { cursor: not-allowed; pointer-events: none; } -.c5 { +.c7 { font-size: 0.9375rem; line-height: 1.125rem; font-style: normal; @@ -509,7 +524,7 @@ exports[`renders without throwing 1`] = ` text-align: left; } -.c3 { +.c5 { display: inline-block; padding: 0; border: none; @@ -521,7 +536,7 @@ exports[`renders without throwing 1`] = ` -webkit-padding-after: 0; } -.c7 { +.c9 { box-sizing: border-box; width: 18.75rem; height: 3rem; @@ -543,111 +558,118 @@ exports[`renders without throwing 1`] = ` text-overflow: ellipsis; } -.c7:focus { +.c9:focus { border-color: rgb(59,70,204); outline: 0; } -.c7::-webkit-input-placeholder { +.c9::-webkit-input-placeholder { color: rgba(73,73,73,0.5); } -.c7::-moz-placeholder { +.c9::-moz-placeholder { color: rgba(73,73,73,0.5); } -.c7:-ms-input-placeholder { +.c9:-ms-input-placeholder { color: rgba(73,73,73,0.5); } -.c7:invalid { +.c9:invalid { box-shadow: none; } -.c7:disabled { +.c9:disabled { background-color: rgb(250,250,250); color: rgb(216,216,216); cursor: not-allowed; } -.c7:disabled::-webkit-input-placeholder { +.c9:disabled::-webkit-input-placeholder { color: rgba(73,73,73,0.5); } -.c7:disabled::-moz-placeholder { +.c9:disabled::-moz-placeholder { color: rgba(73,73,73,0.5); } -.c7:disabled:-ms-input-placeholder { +.c9:disabled:-ms-input-placeholder { color: rgba(73,73,73,0.5); } -.c4 { +.c6 { font-weight: 600; white-space: pre; font-size: 0.8125rem; } -
-
-
- + +
+ +
-
-
- + +
-
- + +
`; exports[`renders
without throwing 1`] = ` @@ -826,14 +848,14 @@ exports[`renders without throwing 1`] = ` `; exports[`renders without throwing 1`] = ` -.c10 { - margin-top: 0.1875rem; -} - .c0 { margin-bottom: 1.125rem; } +.c10 { + margin-top: 0.1875rem; +} + .c6 { margin-right: 0.375rem; margin-bottom: 0.1875rem; diff --git a/packages/resource-widgets/src/cns/index.js b/packages/resource-widgets/src/cns/index.js index 9cd29b8f..0e7defe3 100644 --- a/packages/resource-widgets/src/cns/index.js +++ b/packages/resource-widgets/src/cns/index.js @@ -50,6 +50,10 @@ const ShortDivider = styled(Divider)` margin-right: 0; `; +const Form = styled.form` + margin-bottom: 0; +`; + export const Header = () => (

CNS Default Hostnames

@@ -99,39 +103,40 @@ export const AddServiceForm = ({ pristine, invalid }) => ( -
- - - - - Attach to new CNS service name - - - - - - - - - - - - - -
+ +
+ + + + + Attach to new CNS service name + + + + + + + + + + + + + +
+
); export const Hostname = ({ @@ -200,6 +205,7 @@ const CnsHostnames = ({ }) => ( + {children} {services.length ? ( Existing CNS service name(s) @@ -224,7 +230,6 @@ const CnsHostnames = ({
) : null} - {children} {hostnames.length && hostnames.filter(({ values }) => values.length).length ? ( diff --git a/packages/ui-toolkit/src/form/copiable-field.js b/packages/ui-toolkit/src/form/copiable-field.js index 2f82bbcd..4f44afae 100644 --- a/packages/ui-toolkit/src/form/copiable-field.js +++ b/packages/ui-toolkit/src/form/copiable-field.js @@ -8,7 +8,7 @@ import { Margin } from 'styled-components-spacing'; import { FormLabel, Input } from '..'; import { - default as Tooltip, + default as BaseTooltip, Container as TooltipContainer, Target as TooltipTarget } from '../tooltip'; @@ -29,6 +29,10 @@ const InputIconWrapper = styled.div` } `; +const Tooltip = styled(BaseTooltip)` + top: ${remcalc(-6)} !important; +`; + const ClipboardIconActionable = styled(Clipboard)` cursor: pointer; `; diff --git a/packages/ui-toolkit/src/popover/__tests__/__snapshots__/popover.spec.js.snap b/packages/ui-toolkit/src/popover/__tests__/__snapshots__/popover.spec.js.snap index ba8dadc4..d7932cbd 100644 --- a/packages/ui-toolkit/src/popover/__tests__/__snapshots__/popover.spec.js.snap +++ b/packages/ui-toolkit/src/popover/__tests__/__snapshots__/popover.spec.js.snap @@ -111,7 +111,7 @@ Array [ .c0[data-placement='top'] .b, .c0[data-placement='bottom'] .b { - left: calc(50% - 0.6875rem); + left: calc(50% - 0.375rem); } .c0[data-placement^='left'] .b { diff --git a/packages/ui-toolkit/src/tooltip/__tests__/__snapshots__/tooltip.spec.js.snap b/packages/ui-toolkit/src/tooltip/__tests__/__snapshots__/tooltip.spec.js.snap index 932a6e2a..dfbc4bdc 100644 --- a/packages/ui-toolkit/src/tooltip/__tests__/__snapshots__/tooltip.spec.js.snap +++ b/packages/ui-toolkit/src/tooltip/__tests__/__snapshots__/tooltip.spec.js.snap @@ -79,7 +79,7 @@ Array [ .c0[data-placement='top'] .b, .c0[data-placement='bottom'] .b { - left: calc(50% - 0.6875rem); + left: calc(50% - 0.375rem); } .c0[data-placement^='left'] .b { diff --git a/packages/ui-toolkit/src/tooltip/style.js b/packages/ui-toolkit/src/tooltip/style.js index 69d99124..fbc57e58 100644 --- a/packages/ui-toolkit/src/tooltip/style.js +++ b/packages/ui-toolkit/src/tooltip/style.js @@ -73,7 +73,7 @@ export default ({ background, color, border, arrow }) => css` } &[data-placement='top'] .${arrow}, &[data-placement='bottom'] .${arrow} { - left: calc(50% - ${remcalc(11)}); + left: calc(50% - ${remcalc(6)}); } &[data-placement^='left'] .${arrow} {