diff --git a/.changeset/flat-snakes-sell.md b/.changeset/flat-snakes-sell.md new file mode 100644 index 000000000..c1154d514 --- /dev/null +++ b/.changeset/flat-snakes-sell.md @@ -0,0 +1,5 @@ +--- +"@ebay/skin": minor +--- + +feat(eek): added large size and fixed regular arrow diff --git a/dist/eek/eek.css b/dist/eek/eek.css index d44d0f757..a9838ed4b 100644 --- a/dist/eek/eek.css +++ b/dist/eek/eek.css @@ -7,6 +7,10 @@ position: relative; } +.eek--large { + height: 32px; +} + .eek__container { align-items: center; border: 1px solid #000; @@ -19,6 +23,10 @@ width: 9px; } +.eek--large .icon--eek-arrow { + width: 12.5px; +} + .eek__arrow { overflow: hidden; width: 17px; @@ -105,6 +113,10 @@ -0.5px -0.5px 0 #000; } +.eek--large .eek__rating { + font-size: 24px; +} + .eek__rating-range { align-items: center; background-color: #fff; @@ -116,13 +128,28 @@ padding: 0 1px; } +.eek--large .eek__rating-range { + height: 28px; +} + .eek__rating-range > .icon--eek-range-arrow { height: 6px; width: 5px; } +.eek--large .eek__rating-range > .icon--eek-range-arrow { + height: 7px; + width: 6px; +} + .eek__rating-range > span { font-size: 8px; + height: 8px; +} + +.eek--large .eek__rating-range > span { + font-size: 10px; + height: 10px; } @media not all and (-webkit-min-device-pixel-ratio: 0), not all and (min-resolution: 0.001dpcm) { @@ -134,3 +161,10 @@ } } } +[dir="rtl"] .eek .icon--eek-arrow { + transform: rotate(180deg); +} +[dir="rtl"] .eek__container { + border-left: none; + border-right: 1px solid #000; +} diff --git a/src/modules/eek.marko b/src/modules/eek.marko index e35afd8c6..973a4377c 100644 --- a/src/modules/eek.marko +++ b/src/modules/eek.marko @@ -1,6 +1,7 @@
+ EEK is an icon that is used for energy ratings. It is a rating system that is used to show how energy efficient a product is. EEKs have two parts, a range, and a rating. The following ranges are available:
@@ -138,6 +139,7 @@ +