From 8b03370caa90790c7951891ee73782ee267837e9 Mon Sep 17 00:00:00 2001 From: Gabor Halasz Date: Thu, 26 Aug 2021 15:37:32 +0100 Subject: [PATCH] fix(progress): non visual alternative added new snaps #721 --- .../ProductTemplateHeader.test.tsx.snap | 217 ++++++++++++++++++ .../ProductTemplateProgress.test.tsx.snap | 101 ++++++++ 2 files changed, 318 insertions(+) create mode 100644 src/components/templates/ProductTemplate/ProductTemplateHeader/__snapshots__/ProductTemplateHeader.test.tsx.snap create mode 100644 src/components/templates/ProductTemplate/ProductTemplateProgress/__snapshots__/ProductTemplateProgress.test.tsx.snap diff --git a/src/components/templates/ProductTemplate/ProductTemplateHeader/__snapshots__/ProductTemplateHeader.test.tsx.snap b/src/components/templates/ProductTemplate/ProductTemplateHeader/__snapshots__/ProductTemplateHeader.test.tsx.snap new file mode 100644 index 000000000..4c053614c --- /dev/null +++ b/src/components/templates/ProductTemplate/ProductTemplateHeader/__snapshots__/ProductTemplateHeader.test.tsx.snap @@ -0,0 +1,217 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` renders with all the props 1`] = ` +.c4 { + margin: 0; + -webkit-letter-spacing: 0; + -moz-letter-spacing: 0; + -ms-letter-spacing: 0; + letter-spacing: 0; + color: #4A545E; + font-size: 16px; + line-height: 24px; + font-weight: 400; + font-family: "Open Sans",Roboto,Helvetica,Arial,sans-serif; + text-align: inherit; +} + +.c2 { + background-color: transparent; + font-size: inherit; + font-family: "Open Sans",Roboto,Helvetica,Arial,sans-serif; + font-weight: 600; + line-height: inherit; + color: #3B46C4; + cursor: pointer; + -webkit-text-decoration: underline; + text-decoration: underline; + -webkit-user-select: auto; + -moz-user-select: auto; + -ms-user-select: auto; + user-select: auto; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + padding: 0; + border: none; +} + +.c2:hover, +.c2:active { + color: #21247F; +} + +.c2:hover svg path, +.c2:active svg path { + fill: #21247F; +} + +.c3 { + -webkit-text-decoration: none; + text-decoration: none; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.c5 { + line-height: 0; +} + +.c7 { + margin-left: 6px; + margin-right: 6px; +} + +.c8 { + position: relative; + width: 100%; + border-radius: 100px; + background: #EFEFEF; + height: 4px; +} + +.c11 { + width: 50%; + position: relative; + border-radius: 100px; + height: 4px; + display: block; + background: #00D9C5; + -webkit-transition: width 0.5s ease-in-out; + transition: width 0.5s ease-in-out; +} + +.c11 > span { + position: absolute; + top: 10px; + right: 0; + font-size: 14px; + line-height: 16px; + font-weight: 600; + color: #2C3236; +} + +.c9 { + position: absolute; + top: 50%; + left: 0%; + display: block; + width: 12px; + height: 12px; + background: #00D9C5; + border-radius: 100%; + -webkit-transform: translate(-50%,-50%); + -ms-transform: translate(-50%,-50%); + transform: translate(-50%,-50%); +} + +.c10 { + position: absolute; + top: 50%; + left: 100%; + display: block; + width: 12px; + height: 12px; + background: #EFEFEF; + border-radius: 100%; + -webkit-transform: translate(-50%,-50%); + -ms-transform: translate(-50%,-50%); + transform: translate(-50%,-50%); +} + +.c6 { + max-width: 525px; +} + +.c0 { + position: relative; + min-height: 30px; +} + +@media (min-width:768px) { + .c1 { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + } +} + +@media (min-width:992px) { + .c6 { + max-width: 612px; + } +} + +
+
+ +
+
+
+ + +
+
+
+
+
+
+`; diff --git a/src/components/templates/ProductTemplate/ProductTemplateProgress/__snapshots__/ProductTemplateProgress.test.tsx.snap b/src/components/templates/ProductTemplate/ProductTemplateProgress/__snapshots__/ProductTemplateProgress.test.tsx.snap new file mode 100644 index 000000000..72072db54 --- /dev/null +++ b/src/components/templates/ProductTemplate/ProductTemplateProgress/__snapshots__/ProductTemplateProgress.test.tsx.snap @@ -0,0 +1,101 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` renders with all the props 1`] = ` +.c1 { + margin-left: 6px; + margin-right: 6px; +} + +.c2 { + position: relative; + width: 100%; + border-radius: 100px; + background: #EFEFEF; + height: 4px; +} + +.c5 { + width: 50%; + position: relative; + border-radius: 100px; + height: 4px; + display: block; + background: #00D9C5; + -webkit-transition: width 0.5s ease-in-out; + transition: width 0.5s ease-in-out; +} + +.c5 > span { + position: absolute; + top: 10px; + right: 0; + font-size: 14px; + line-height: 16px; + font-weight: 600; + color: #2C3236; +} + +.c3 { + position: absolute; + top: 50%; + left: 0%; + display: block; + width: 12px; + height: 12px; + background: #00D9C5; + border-radius: 100%; + -webkit-transform: translate(-50%,-50%); + -ms-transform: translate(-50%,-50%); + transform: translate(-50%,-50%); +} + +.c4 { + position: absolute; + top: 50%; + left: 100%; + display: block; + width: 12px; + height: 12px; + background: #EFEFEF; + border-radius: 100%; + -webkit-transform: translate(-50%,-50%); + -ms-transform: translate(-50%,-50%); + transform: translate(-50%,-50%); +} + +.c0 { + max-width: 525px; +} + +@media (min-width:992px) { + .c0 { + max-width: 612px; + } +} + +
+
+
+
+ + +
+
+
+
+
+`;