From 243443be8b793cbadd2b3455b3aacc7c20f68a84 Mon Sep 17 00:00:00 2001
From: Matt Henry
Date: Tue, 14 May 2024 13:15:48 -0400
Subject: [PATCH 01/40] add banner markup & sass
---
web-components/index.html | 3 +-
.../src/components/usa-banner/index.js | 116 ++++++++++++++++++
web-components/vite.config.js | 7 ++
3 files changed, 125 insertions(+), 1 deletion(-)
create mode 100644 web-components/src/components/usa-banner/index.js
diff --git a/web-components/index.html b/web-components/index.html
index e368772b..cf08a651 100644
--- a/web-components/index.html
+++ b/web-components/index.html
@@ -6,7 +6,7 @@
USWDS + Lit
-
+
@@ -25,7 +28,29 @@
It's dangerous to go alone. Here, take this.
- Identifier - Minimal markup
+ Minimal markup - one logo
+
+
+
+
+
+ designsystem.digital.gov
+ An official website of the General Services Administration
+
+ Looking for U.S. government information and services?
Visit USA.gov
+
+
+ Minimal markup - two logos
@@ -33,6 +58,29 @@ Identifier - Minimal markup
src="https://designsystem.digital.gov/img/gsa-logo.svg"
alt="General Services Administration logo"/>
+
+
+
+ designsystem.digital.gov
+ An official website of the General Services Administration
+
+ Looking for U.S. government information and services?
Visit USA.gov
+
+
+
+ Minimal markup - no logos
+
+
designsystem.digital.gov
An official website of the General Services Administration
- Identifier - Attribute-based
+
+ Attribute-based - one logo
Date: Fri, 31 May 2024 14:45:53 -0700
Subject: [PATCH 13/40] Add attribute objects; change snake case -> camel
---
web-components/index.html | 47 ++++--
.../usa-identifier-attributes-object/index.js | 134 ++++++++++++++++++
.../package.json | 12 ++
.../usa-identifier-attributes/index.js | 50 +++----
4 files changed, 206 insertions(+), 37 deletions(-)
create mode 100644 web-components/src/components/usa-identifier-attributes-object/index.js
create mode 100644 web-components/src/components/usa-identifier-attributes-object/package.json
diff --git a/web-components/index.html b/web-components/index.html
index dcbebcce..341dacd0 100644
--- a/web-components/index.html
+++ b/web-components/index.html
@@ -10,6 +10,7 @@
+
@@ -29,7 +26,7 @@
It's dangerous to go alone. Here, take this.
- Minimal markup - one logo
+
+
+ Minimal markup - simple
+
+
+
+
+
+ designsystem.digital.gov
+ An official website of the General Services Administration
+
+ Looking for U.S. government information and services?
Visit USA.gov
+
+
+
+ Attribute object - Spanish - simple
+
+ Attribute object - Custom link text
"url": "https://www.gsa.gov/",
"logo": "https://designsystem.digital.gov/img/gsa-logo.svg"
}'
+ secondaryParentAgency= '{
+ "name": "[French] Other agency",
+ "shortname": "OA",
+ "url": "https://www.oa.gov/",
+ "logo": "https://designsystem.digital.gov/assets/img/circle-gray-20.svg"
+ }'
langContent= '{
"aria_label": "Agency identifier",
"disclaimer": "[French] An official website of the",
+ "taxpayer": "[French]Produced and published at taxpayer expense",
+ "conjunction": "et",
"linkLabels": {
"about": "[French] About",
"accessibility": "[French] Accessibility statement",
@@ -225,6 +303,37 @@ Attribute object - Custom link text
}'
>
+
+ Minimal markup - Custom content - Complex
+
+
+
+
+
+
+
+
+ [French] designsystem.digital.gov
+
+ [French] An official website of the [French]General Services Administration et
+ [French] Other agency.
+ [French]Produced and published at taxpayer expense
.
+
+
+
+