-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
400 additions
and
41 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/ebayui-core": minor | ||
--- | ||
|
||
icon-button: added priority attribute |
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
28 changes: 28 additions & 0 deletions
28
src/components/ebay-icon-button/test/__snapshots__/Renders-defaults.expected.txt
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,28 @@ | ||
[36m<DocumentFragment>[39m | ||
[36m<button[39m | ||
[33mclass[39m=[32m"icon-btn"[39m | ||
[33mdata-ebayui[39m=[32m""[39m | ||
[33mhref[39m=[32m""[39m | ||
[33mtype[39m=[32m"button"[39m | ||
[36m>[39m | ||
[36m<svg[39m | ||
[33maria-hidden[39m=[32m"true"[39m | ||
[33mclass[39m=[32m"icon icon--menu-24"[39m | ||
[33mfocusable[39m=[32m"false"[39m | ||
[36m>[39m | ||
[36m<defs>[39m | ||
[36m<symbol[39m | ||
[33mid[39m=[32m"icon-menu-24"[39m | ||
[33mviewBox[39m=[32m"0 0 24 24"[39m | ||
[36m>[39m | ||
[36m<path[39m | ||
[33md[39m=[32m"M3 5h18a1 1 0 0 0 0-2H3a1 1 0 0 0 0 2Zm18 6H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2ZM3 19h18a1 1 0 0 1 0 2H3a1 1 0 0 1 0-2Z"[39m | ||
[36m/>[39m | ||
[36m</symbol>[39m | ||
[36m</defs>[39m | ||
[36m<use[39m | ||
[33mhref[39m=[32m"#icon-menu-24"[39m | ||
[36m/>[39m | ||
[36m</svg>[39m | ||
[36m</button>[39m | ||
[36m</DocumentFragment>[39m |
36 changes: 36 additions & 0 deletions
36
src/components/ebay-icon-button/test/__snapshots__/renders-badged-icon-variant.expected.txt
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,36 @@ | ||
[36m<DocumentFragment>[39m | ||
[36m<button[39m | ||
[33maria-label[39m=[32m"Badged button"[39m | ||
[33mclass[39m=[32m"icon-btn icon-btn--badged"[39m | ||
[33mdata-ebayui[39m=[32m""[39m | ||
[33mhref[39m=[32m""[39m | ||
[33mtype[39m=[32m"button"[39m | ||
[36m>[39m | ||
[36m<svg[39m | ||
[33maria-hidden[39m=[32m"true"[39m | ||
[33mclass[39m=[32m"icon icon--menu-24"[39m | ||
[33mfocusable[39m=[32m"false"[39m | ||
[36m>[39m | ||
[36m<defs>[39m | ||
[36m<symbol[39m | ||
[33mid[39m=[32m"icon-menu-24"[39m | ||
[33mviewBox[39m=[32m"0 0 24 24"[39m | ||
[36m>[39m | ||
[36m<path[39m | ||
[33md[39m=[32m"M3 5h18a1 1 0 0 0 0-2H3a1 1 0 0 0 0 2Zm18 6H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2ZM3 19h18a1 1 0 0 1 0 2H3a1 1 0 0 1 0-2Z"[39m | ||
[36m/>[39m | ||
[36m</symbol>[39m | ||
[36m</defs>[39m | ||
[36m<use[39m | ||
[33mhref[39m=[32m"#icon-menu-24"[39m | ||
[36m/>[39m | ||
[36m</svg>[39m | ||
[36m<span[39m | ||
[33maria-hidden[39m=[32m"true"[39m | ||
[33maria-label[39m=[32m"5 Items"[39m | ||
[33mclass[39m=[32m"badge"[39m | ||
[36m>[39m | ||
[0m5[0m | ||
[36m</span>[39m | ||
[36m</button>[39m | ||
[36m</DocumentFragment>[39m |
28 changes: 28 additions & 0 deletions
28
...ents/ebay-icon-button/test/__snapshots__/renders-button-with-priority-delete.expected.txt
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,28 @@ | ||
[36m<DocumentFragment>[39m | ||
[36m<button[39m | ||
[33mclass[39m=[32m"icon-btn"[39m | ||
[33mdata-ebayui[39m=[32m""[39m | ||
[33mhref[39m=[32m""[39m | ||
[33mtype[39m=[32m"button"[39m | ||
[36m>[39m | ||
[36m<svg[39m | ||
[33maria-hidden[39m=[32m"true"[39m | ||
[33mclass[39m=[32m"icon icon--menu-24"[39m | ||
[33mfocusable[39m=[32m"false"[39m | ||
[36m>[39m | ||
[36m<defs>[39m | ||
[36m<symbol[39m | ||
[33mid[39m=[32m"icon-menu-24"[39m | ||
[33mviewBox[39m=[32m"0 0 24 24"[39m | ||
[36m>[39m | ||
[36m<path[39m | ||
[33md[39m=[32m"M3 5h18a1 1 0 0 0 0-2H3a1 1 0 0 0 0 2Zm18 6H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2ZM3 19h18a1 1 0 0 1 0 2H3a1 1 0 0 1 0-2Z"[39m | ||
[36m/>[39m | ||
[36m</symbol>[39m | ||
[36m</defs>[39m | ||
[36m<use[39m | ||
[33mhref[39m=[32m"#icon-menu-24"[39m | ||
[36m/>[39m | ||
[36m</svg>[39m | ||
[36m</button>[39m | ||
[36m</DocumentFragment>[39m |
28 changes: 28 additions & 0 deletions
28
...nts/ebay-icon-button/test/__snapshots__/renders-button-with-priority-primary.expected.txt
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,28 @@ | ||
[36m<DocumentFragment>[39m | ||
[36m<button[39m | ||
[33mclass[39m=[32m"icon-btn icon-btn--primary"[39m | ||
[33mdata-ebayui[39m=[32m""[39m | ||
[33mhref[39m=[32m""[39m | ||
[33mtype[39m=[32m"button"[39m | ||
[36m>[39m | ||
[36m<svg[39m | ||
[33maria-hidden[39m=[32m"true"[39m | ||
[33mclass[39m=[32m"icon icon--menu-24"[39m | ||
[33mfocusable[39m=[32m"false"[39m | ||
[36m>[39m | ||
[36m<defs>[39m | ||
[36m<symbol[39m | ||
[33mid[39m=[32m"icon-menu-24"[39m | ||
[33mviewBox[39m=[32m"0 0 24 24"[39m | ||
[36m>[39m | ||
[36m<path[39m | ||
[33md[39m=[32m"M3 5h18a1 1 0 0 0 0-2H3a1 1 0 0 0 0 2Zm18 6H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2ZM3 19h18a1 1 0 0 1 0 2H3a1 1 0 0 1 0-2Z"[39m | ||
[36m/>[39m | ||
[36m</symbol>[39m | ||
[36m</defs>[39m | ||
[36m<use[39m | ||
[33mhref[39m=[32m"#icon-menu-24"[39m | ||
[36m/>[39m | ||
[36m</svg>[39m | ||
[36m</button>[39m | ||
[36m</DocumentFragment>[39m |
28 changes: 28 additions & 0 deletions
28
...s/ebay-icon-button/test/__snapshots__/renders-button-with-priority-secondary.expected.txt
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,28 @@ | ||
[36m<DocumentFragment>[39m | ||
[36m<button[39m | ||
[33mclass[39m=[32m"icon-btn icon-btn--secondary"[39m | ||
[33mdata-ebayui[39m=[32m""[39m | ||
[33mhref[39m=[32m""[39m | ||
[33mtype[39m=[32m"button"[39m | ||
[36m>[39m | ||
[36m<svg[39m | ||
[33maria-hidden[39m=[32m"true"[39m | ||
[33mclass[39m=[32m"icon icon--menu-24"[39m | ||
[33mfocusable[39m=[32m"false"[39m | ||
[36m>[39m | ||
[36m<defs>[39m | ||
[36m<symbol[39m | ||
[33mid[39m=[32m"icon-menu-24"[39m | ||
[33mviewBox[39m=[32m"0 0 24 24"[39m | ||
[36m>[39m | ||
[36m<path[39m | ||
[33md[39m=[32m"M3 5h18a1 1 0 0 0 0-2H3a1 1 0 0 0 0 2Zm18 6H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2ZM3 19h18a1 1 0 0 1 0 2H3a1 1 0 0 1 0-2Z"[39m | ||
[36m/>[39m | ||
[36m</symbol>[39m | ||
[36m</defs>[39m | ||
[36m<use[39m | ||
[33mhref[39m=[32m"#icon-menu-24"[39m | ||
[36m/>[39m | ||
[36m</svg>[39m | ||
[36m</button>[39m | ||
[36m</DocumentFragment>[39m |
28 changes: 28 additions & 0 deletions
28
...omponents/ebay-icon-button/test/__snapshots__/renders-button-with-size-large.expected.txt
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,28 @@ | ||
[36m<DocumentFragment>[39m | ||
[36m<button[39m | ||
[33mclass[39m=[32m"icon-btn icon-btn--large"[39m | ||
[33mdata-ebayui[39m=[32m""[39m | ||
[33mhref[39m=[32m""[39m | ||
[33mtype[39m=[32m"button"[39m | ||
[36m>[39m | ||
[36m<svg[39m | ||
[33maria-hidden[39m=[32m"true"[39m | ||
[33mclass[39m=[32m"icon icon--menu-24"[39m | ||
[33mfocusable[39m=[32m"false"[39m | ||
[36m>[39m | ||
[36m<defs>[39m | ||
[36m<symbol[39m | ||
[33mid[39m=[32m"icon-menu-24"[39m | ||
[33mviewBox[39m=[32m"0 0 24 24"[39m | ||
[36m>[39m | ||
[36m<path[39m | ||
[33md[39m=[32m"M3 5h18a1 1 0 0 0 0-2H3a1 1 0 0 0 0 2Zm18 6H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2ZM3 19h18a1 1 0 0 1 0 2H3a1 1 0 0 1 0-2Z"[39m | ||
[36m/>[39m | ||
[36m</symbol>[39m | ||
[36m</defs>[39m | ||
[36m<use[39m | ||
[33mhref[39m=[32m"#icon-menu-24"[39m | ||
[36m/>[39m | ||
[36m</svg>[39m | ||
[36m</button>[39m | ||
[36m</DocumentFragment>[39m |
28 changes: 28 additions & 0 deletions
28
...omponents/ebay-icon-button/test/__snapshots__/renders-button-with-size-small.expected.txt
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,28 @@ | ||
[36m<DocumentFragment>[39m | ||
[36m<button[39m | ||
[33mclass[39m=[32m"icon-btn icon-btn--small"[39m | ||
[33mdata-ebayui[39m=[32m""[39m | ||
[33mhref[39m=[32m""[39m | ||
[33mtype[39m=[32m"button"[39m | ||
[36m>[39m | ||
[36m<svg[39m | ||
[33maria-hidden[39m=[32m"true"[39m | ||
[33mclass[39m=[32m"icon icon--menu-24"[39m | ||
[33mfocusable[39m=[32m"false"[39m | ||
[36m>[39m | ||
[36m<defs>[39m | ||
[36m<symbol[39m | ||
[33mid[39m=[32m"icon-menu-24"[39m | ||
[33mviewBox[39m=[32m"0 0 24 24"[39m | ||
[36m>[39m | ||
[36m<path[39m | ||
[33md[39m=[32m"M3 5h18a1 1 0 0 0 0-2H3a1 1 0 0 0 0 2Zm18 6H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2ZM3 19h18a1 1 0 0 1 0 2H3a1 1 0 0 1 0-2Z"[39m | ||
[36m/>[39m | ||
[36m</symbol>[39m | ||
[36m</defs>[39m | ||
[36m<use[39m | ||
[33mhref[39m=[32m"#icon-menu-24"[39m | ||
[36m/>[39m | ||
[36m</svg>[39m | ||
[36m</button>[39m | ||
[36m</DocumentFragment>[39m |
29 changes: 29 additions & 0 deletions
29
src/components/ebay-icon-button/test/__snapshots__/renders-disabled-version.expected.txt
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,29 @@ | ||
[36m<DocumentFragment>[39m | ||
[36m<button[39m | ||
[33mclass[39m=[32m"icon-btn"[39m | ||
[33mdata-ebayui[39m=[32m""[39m | ||
[33mdisabled[39m=[32m""[39m | ||
[33mhref[39m=[32m""[39m | ||
[33mtype[39m=[32m"button"[39m | ||
[36m>[39m | ||
[36m<svg[39m | ||
[33maria-hidden[39m=[32m"true"[39m | ||
[33mclass[39m=[32m"icon icon--menu-24"[39m | ||
[33mfocusable[39m=[32m"false"[39m | ||
[36m>[39m | ||
[36m<defs>[39m | ||
[36m<symbol[39m | ||
[33mid[39m=[32m"icon-menu-24"[39m | ||
[33mviewBox[39m=[32m"0 0 24 24"[39m | ||
[36m>[39m | ||
[36m<path[39m | ||
[33md[39m=[32m"M3 5h18a1 1 0 0 0 0-2H3a1 1 0 0 0 0 2Zm18 6H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2ZM3 19h18a1 1 0 0 1 0 2H3a1 1 0 0 1 0-2Z"[39m | ||
[36m/>[39m | ||
[36m</symbol>[39m | ||
[36m</defs>[39m | ||
[36m<use[39m | ||
[33mhref[39m=[32m"#icon-menu-24"[39m | ||
[36m/>[39m | ||
[36m</svg>[39m | ||
[36m</button>[39m | ||
[36m</DocumentFragment>[39m |
28 changes: 28 additions & 0 deletions
28
src/components/ebay-icon-button/test/__snapshots__/renders-fake-version.expected.txt
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,28 @@ | ||
[36m<DocumentFragment>[39m | ||
[36m<a[39m | ||
[33maria-label[39m=[32m"fake button"[39m | ||
[33mclass[39m=[32m"icon-btn"[39m | ||
[33mdata-ebayui[39m=[32m""[39m | ||
[33mhref[39m=[32m"#"[39m | ||
[36m>[39m | ||
[36m<svg[39m | ||
[33maria-hidden[39m=[32m"true"[39m | ||
[33mclass[39m=[32m"icon icon--menu-24"[39m | ||
[33mfocusable[39m=[32m"false"[39m | ||
[36m>[39m | ||
[36m<defs>[39m | ||
[36m<symbol[39m | ||
[33mid[39m=[32m"icon-menu-24"[39m | ||
[33mviewBox[39m=[32m"0 0 24 24"[39m | ||
[36m>[39m | ||
[36m<path[39m | ||
[33md[39m=[32m"M3 5h18a1 1 0 0 0 0-2H3a1 1 0 0 0 0 2Zm18 6H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2ZM3 19h18a1 1 0 0 1 0 2H3a1 1 0 0 1 0-2Z"[39m | ||
[36m/>[39m | ||
[36m</symbol>[39m | ||
[36m</defs>[39m | ||
[36m<use[39m | ||
[33mhref[39m=[32m"#icon-menu-24"[39m | ||
[36m/>[39m | ||
[36m</svg>[39m | ||
[36m</a>[39m | ||
[36m</DocumentFragment>[39m |
29 changes: 29 additions & 0 deletions
29
src/components/ebay-icon-button/test/__snapshots__/renders-icon.expected.txt
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,29 @@ | ||
[36m<DocumentFragment>[39m | ||
[36m<button[39m | ||
[33maria-label[39m=[32m"icon button"[39m | ||
[33mclass[39m=[32m"icon-btn"[39m | ||
[33mdata-ebayui[39m=[32m""[39m | ||
[33mhref[39m=[32m""[39m | ||
[33mtype[39m=[32m"button"[39m | ||
[36m>[39m | ||
[36m<svg[39m | ||
[33maria-hidden[39m=[32m"true"[39m | ||
[33mclass[39m=[32m"icon icon--menu-24"[39m | ||
[33mfocusable[39m=[32m"false"[39m | ||
[36m>[39m | ||
[36m<defs>[39m | ||
[36m<symbol[39m | ||
[33mid[39m=[32m"icon-menu-24"[39m | ||
[33mviewBox[39m=[32m"0 0 24 24"[39m | ||
[36m>[39m | ||
[36m<path[39m | ||
[33md[39m=[32m"M3 5h18a1 1 0 0 0 0-2H3a1 1 0 0 0 0 2Zm18 6H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2ZM3 19h18a1 1 0 0 1 0 2H3a1 1 0 0 1 0-2Z"[39m | ||
[36m/>[39m | ||
[36m</symbol>[39m | ||
[36m</defs>[39m | ||
[36m<use[39m | ||
[33mhref[39m=[32m"#icon-menu-24"[39m | ||
[36m/>[39m | ||
[36m</svg>[39m | ||
[36m</button>[39m | ||
[36m</DocumentFragment>[39m |
Oops, something went wrong.