-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web components Identifier: Pre-alpha #115
Comments
Identifier component design planLandscape analysisIdentifier code samples from the landscape analysis (Google docs 🔒) Proposed component structureCritical content
Sample default implementation: <usa-identifier
lang="en"
domainName="domain.gov"
parentAgencyLogo="https://designsystem.digital.gov/assets/img/circle-gray-20.svg"
parentAgencyUrl="javascipt:void(0)"
parentAgencyName="[Parent agency]"
parentAgencyShortname="[AAA]"
aboutURL="javascipt:void(0)"
accessibilityURL="javascipt:void(0)"
foiaURL="javascipt:void(0)"
noFearURL="javascipt:void(0)"
oigURL="javascipt:void(0)"
performanceURL="javascipt:void(0)"
privacyURL="javascipt:void(0)"
>
</usa-identifier> Sample default implementation with pre-programmed language (in this example, Spanish): <usa-identifier
lang="es"
domainName="domain.gov"
parentAgencyLogo="https://designsystem.digital.gov/assets/img/circle-gray-20.svg"
parentAgencyUrl="javascipt:void(0)"
parentAgencyName="[Parent agency]"
parentAgencyShortname="[AAA]"
aboutURL="javascipt:void(0)"
accessibilityURL="javascipt:void(0)"
foiaURL="javascipt:void(0)"
noFearURL="javascipt:void(0)"
oigURL="javascipt:void(0)"
performanceURL="javascipt:void(0)"
privacyURL="javascipt:void(0)"
>
</usa-identifier> Sample complex implementation with custom language strings (French) and multiple logo0s: <usa-identifier
taxpayerDisclaimer=true
disclaimerIntroText="Un site officiel du"
disclaimerConjunctionText="et"
taxpayerText="Produit et publié aux frais des contribuables."
ariaLabel="Identifiant de l'agence"
domainName="domain.gov"
parentAgencyLogo="https://designsystem.digital.gov/assets/img/circle-gray-20.svg"
parentAgencyUrl="javascipt:void(0)"
parentAgencyName="[Parent agency]"
parentAgencyShortname="[AAA]"
secondaryParentAgencyLogo="https://designsystem.digital.gov/assets/img/circle-gray-20.svg"
secondaryParentAgencyUrl="javascipt:void(0)"
secondaryParentAgencyName="[Parent agency]"
aboutURL="javascipt:void(0)"
aboutText="À propos"
accessibilityURL="javascipt:void(0)"
accessibilityText="Déclaration d'accessibilité"
foiaURL="javascipt:void(0)"
foiaText="Solicitud a través de FOIA"
noFearURL="javascipt:void(0)"
noFearText="Datos de la ley No FEAR"
oigURL="javascipt:void(0)"
oigText="Bureau de l'Inspecteur général"
performanceURL="javascipt:void(0)"
performanceText="Rapports de performances"
privacyURL="javascipt:void(0)"
privacyText="Politique de confidentialité"
usagovText="Vous recherchez des informations et des services du gouvernement américain?"
usagovLinkText="Visitez usa.gov"
usagovUrl="https://www.usa.gov/"
>
</usa-identifier> Shadow DOMSame as USWDS 3, with some small exceptions:
<section class="usa-identifier" aria-label="Agency identifier">
<section class="usa-identifier__section usa-identifier__section--masthead">
<div class="usa-identifier__container">
<div class="usa-identifier__logos" part="logo-wrapper">
<a href="javascipt:void(0)" class="usa-identifier__logo" part="logo">
<img src="https://designsystem.digital.gov/assets/img/circle-gray-20.svg" alt="[Parent agency] logo" class="usa-identifier__logo-img" part="logo-image">
</a>
</div>
<section class="usa-identifier__identity">
<p slot="domain" class="usa-identifier__identity-domain" part="domain">[domain.gov]</p>
<p class="usa-identifier__identity-disclaimer" part="disclaimer">
An official website of the <a agency-shortname="[Agency shortname]" href="javascipt:void(0)" part="disclaimer-link">[Parent agency]</a>
</p>
</section>
</div>
</section>
<nav class="usa-identifier__section usa-identifier__section--required-links">
<div class="usa-identifier__container">
<ul class="usa-identifier__required-links-list">
<li class="usa-identifier__required-links-item">
<a class="usa-identifier__required-link usa-link" part="required-link" href="javascipt:void(0)">About [Agency shortname]</a>
</li>
<li class="usa-identifier__required-links-item">
<a class="usa-identifier__required-link usa-link" part="required-link" href="javascipt:void(0)">Accessibility statement</a>
</li>
<li class="usa-identifier__required-links-item">
<a class="usa-identifier__required-link usa-link" part="required-link" href="javascipt:void(0)">FOIA requests</a>
</li>
<li class="usa-identifier__required-links-item">
<a class="usa-identifier__required-link usa-link" part="required-link" href="javascipt:void(0)">No FEAR Act data</a>
</li>
<li class="usa-identifier__required-links-item">
<a class="usa-identifier__required-link usa-link" part="required-link" href="javascipt:void(0)">Office of the Inspector General</a>
</li>
<li class="usa-identifier__required-links-item">
<a class="usa-identifier__required-link usa-link" part="required-link" href="javascipt:void(0)">Performance reports</a>
</li>
<li class="usa-identifier__required-links-item">
<a class="usa-identifier__required-link usa-link" part="required-link" href="javascipt:void(0)">Privacy policy</a>
</li>
</ul>
</div>
</nav>
<section class="usa-identifier__section usa-identifier__section--usagov">
<div class="usa-identifier__container">
<p class="usa-identifier__usagov-description" part="usagov">
Looking for U.S. government information and services?
<a class="usa-link" href="https://www.usa.gov/">Visit USA.gov</a>
</p>
</div>
</section>
</section> VariantsCurrent variants
Proposed additional variants
PropsCurrent variants
Proposed additional variants
SlotsUnnamed slot CSS Parts
CSS VariablesCurrent settings
Proposed additional setting
Translatable content |
amyleadem
changed the title
Web components Identifier: Pre-alpha
Web components - Identifier: Pre-alpha
Dec 20, 2024
amyleadem
changed the title
Web components - Identifier: Pre-alpha
Web components Identifier: Pre-alpha
Dec 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Research and planning tasks
The text was updated successfully, but these errors were encountered: