From 617e945f542b3536d947590bf463eb33561b55fe Mon Sep 17 00:00:00 2001 From: Jenn Diaz Date: Tue, 5 Dec 2023 12:06:30 -0700 Subject: [PATCH 1/2] docs(tag): remove incorrect invalid tags examples --- components/tag/metadata/tag.yml | 48 +++++++-------------------------- 1 file changed, 10 insertions(+), 38 deletions(-) diff --git a/components/tag/metadata/tag.yml b/components/tag/metadata/tag.yml index 67af39c6a79..f6cd4c34aa4 100644 --- a/components/tag/metadata/tag.yml +++ b/components/tag/metadata/tag.yml @@ -21,6 +21,10 @@ sections: ``` ### Icon size changed to small If you use an icon (`spectrum-Tag-itemIcon`) along with a tag, please replace `.spectrum-Icon--sizeXS` with `.spectrum-Icon--sizeS`. + + ### Invalid + Docs updated to show invalid tags always including the alert icon. Invalid tags should have an icon to idenfity itself as invalid and not rely soley on the red background and border color. + examples: - id: tag name: Standard @@ -86,10 +90,6 @@ examples:

Invalid

-
- Tag label -
-
-
- Avatar -
+ Tag label -
-

Selected + Invalid

-
- Tag label - -
-
- ${avatarUrl + ${avatarUrl && !isInvalid ? Avatar({ ...globals, image: avatarUrl, size: "50", }) : ""} - ${iconName + ${iconName || isInvalid ? Icon({ ...globals, size, diff --git a/components/taggroup/metadata/taggroup.yml b/components/taggroup/metadata/taggroup.yml index 65c697b767a..b112e0589a3 100644 --- a/components/taggroup/metadata/taggroup.yml +++ b/components/taggroup/metadata/taggroup.yml @@ -30,9 +30,6 @@ examples:
Tag 1
-
- Tag 2 -
Tag 2
@@ -47,12 +44,6 @@ examples:
Shantanu
-
-
- Avatar -
- Shantanu -
Avatar @@ -71,9 +62,9 @@ examples: Shantanu
- + Shantanu
@@ -98,16 +89,6 @@ examples:
-
- Tag 2 - -
Tag 2
-
-
- Avatar -
- Shantanu - -
Avatar @@ -182,7 +150,7 @@ examples:
Shantanu