-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eek): added large styles (#2480)
- Loading branch information
Showing
5 changed files
with
277 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@ebay/skin": minor | ||
--- | ||
|
||
feat(eek): added large size and fixed regular arrow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
export default { title: "Skin/EEK" }; | ||
|
||
export const typical = () => ` | ||
<div class="eek eek--rating-4" role="figure" aria-label="Energy Rating: B. Range: A++ - E"> | ||
<div class="eek__container"> | ||
<span class="eek__rating-range"> | ||
<span aria-hidden="true">A++</span> | ||
<svg class="icon icon--eek-range-arrow" aria-hidden="true"> | ||
<use href="#icon-eek-range-arrow"></use> | ||
</svg> | ||
<span aria-hidden="true">E</span> | ||
</span> | ||
<span class="eek__rating" aria-hidden="true"> | ||
B | ||
</span> | ||
</div> | ||
<svg class="icon icon--eek-arrow" aria-hidden="true"> | ||
<use href="#icon-eek-arrow"></use> | ||
</svg> | ||
</div> | ||
`; | ||
|
||
export const large = () => ` | ||
<div class="eek eek--large eek--rating-1" role="figure" aria-label="Energy Rating: A+++. Range: A+++ - D"> | ||
<div class="eek__container"> | ||
<span class="eek__rating-range"> | ||
<span aria-hidden="true">A+++</span> | ||
<svg class="icon icon--eek-range-arrow" aria-hidden="true"> | ||
<use href="#icon-eek-range-arrow"></use> | ||
</svg> | ||
<span aria-hidden="true">D</span> | ||
</span> | ||
<span class="eek__rating" aria-hidden="true"> | ||
A+++ | ||
</span> | ||
</div> | ||
<svg class="icon icon--eek-arrow" aria-hidden="true"> | ||
<use href="#icon-eek-arrow"></use> | ||
</svg> | ||
</div> | ||
`; | ||
|
||
export const RTL = () => ` | ||
<div dir="rtl"> | ||
<div class="eek eek--rating-4" role="figure" aria-label="Energy Rating: B. Range: A++ - E"> | ||
<div class="eek__container"> | ||
<span class="eek__rating-range"> | ||
<span aria-hidden="true">A++</span> | ||
<svg class="icon icon--eek-range-arrow" aria-hidden="true"> | ||
<use href="#icon-eek-range-arrow"></use> | ||
</svg> | ||
<span aria-hidden="true">E</span> | ||
</span> | ||
<span class="eek__rating" aria-hidden="true"> | ||
B | ||
</span> | ||
</div> | ||
<svg class="icon icon--eek-arrow" aria-hidden="true"> | ||
<use href="#icon-eek-arrow"></use> | ||
</svg> | ||
</div> | ||
</div> | ||
`; | ||
|
||
export const RTLLarge = () => ` | ||
<div dir="rtl"> | ||
<div class="eek eek--large eek--rating-1" role="figure" aria-label="Energy Rating: A+++. Range: A+++ - D"> | ||
<div class="eek__container"> | ||
<span class="eek__rating-range"> | ||
<span aria-hidden="true">A+++</span> | ||
<svg class="icon icon--eek-range-arrow" aria-hidden="true"> | ||
<use href="#icon-eek-range-arrow"></use> | ||
</svg> | ||
<span aria-hidden="true">D</span> | ||
</span> | ||
<span class="eek__rating" aria-hidden="true"> | ||
A+++ | ||
</span> | ||
</div> | ||
<svg class="icon icon--eek-arrow" aria-hidden="true"> | ||
<use href="#icon-eek-arrow"></use> | ||
</svg> | ||
</div> | ||
</div> | ||
`; |