Skip to content

Commit

Permalink
Identifier: Update "An official website" screen reader text
Browse files Browse the repository at this point in the history
  • Loading branch information
werdnanoslen committed Dec 27, 2023
1 parent 1e000d3 commit 25152d4
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions src/components/Identifier/Identifier/Identifier.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const identifierDefault = (): React.ReactElement => (
<IdentifierLogo href="#">{testIdentifierLogo}</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="domain.edu.mil.gov">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="#">Test Agency Name</Link>
</IdentifierIdentity>
</IdentifierMasthead>
Expand Down Expand Up @@ -173,7 +173,7 @@ export const multipleParentsAndLogos = (): React.ReactElement => (
<IdentifierLogo href="#">{testIdentifierLogo}</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="domain.edu.mil.gov">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="#">Test Agency Name</Link>
{` and the `}
<Link href="#">Other Test Agency Name</Link>
Expand Down Expand Up @@ -218,7 +218,7 @@ export const moreThanTwoParentsAndLogos = (): React.ReactElement => (
<IdentifierLogo href="#">{testIdentifierLogo}</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="domain.edu.mil.gov">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="#">Test Agency Name</Link>
{`, `}
<Link href="#">Second Test Agency Name</Link>
Expand All @@ -239,7 +239,7 @@ export const noLogosEnglish = (): React.ReactElement => (
<Identifier>
<IdentifierMasthead aria-label="Agency identifier">
<IdentifierIdentity domain="domain.edu.mil.gov">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="#">Test Agency Name</Link>
</IdentifierIdentity>
</IdentifierMasthead>
Expand Down Expand Up @@ -276,7 +276,7 @@ export const taxDisclaimerEnglish = (): React.ReactElement => (
<IdentifierLogo href="#">{testIdentifierLogo}</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="domain.edu.mil.gov">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="#">Test Agency Name</Link>
{`. Produced and published at taxpayer expense.`}
</IdentifierIdentity>
Expand Down Expand Up @@ -320,7 +320,7 @@ export const taxDisclaimerAndMultipleParentsAndLogos =
<IdentifierLogo href="#">{testIdentifierLogo}</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="domain.edu.mil.gov">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="#">Test Agency Name</Link>
{` and the `}
<Link href="#">Other Test Agency Name</Link>
Expand Down
8 changes: 4 additions & 4 deletions src/components/Identifier/Identifier/Identifier.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe('Identifier component', () => {
</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="domain.edu.mil.gov">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="testlink">Test Agency Name</Link>
</IdentifierIdentity>
</IdentifierMasthead>
Expand Down Expand Up @@ -175,7 +175,7 @@ describe('Identifier component', () => {
data-testid="identifierMasthead-agency-description"
domain="domain.edu.mil.gov"
aria-label="Agency description">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="testlink">Test Agency Name</Link>
</IdentifierIdentity>
</IdentifierMasthead>
Expand Down Expand Up @@ -205,7 +205,7 @@ describe('Identifier component', () => {
<IdentifierLogo href="#">{testIdentifierLogo}</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="domain.edu.mil.gov">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="#">Test Agency Name</Link>
{`, `}
<Link href="#">Second Test Agency Name</Link>
Expand Down Expand Up @@ -237,7 +237,7 @@ describe('Identifier component', () => {
<IdentifierIdentity
data-testid="identifierMasthead-agency-description"
domain="domain.edu.mil.gov">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="#">Test Agency Name</Link>
{`. Produced and published at taxpayer expense.`}
</IdentifierIdentity>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('IdentifierIdentity component', () => {
it('renders without errors', () => {
const { queryByTestId } = render(
<IdentifierIdentity domain="domain.edu.mil.gov">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="#">Test Agency Name</Link>
</IdentifierIdentity>
)
Expand All @@ -25,7 +25,7 @@ describe('IdentifierIdentity component', () => {
className="custom-class"
aria-label="Test aria label"
domain="a.domain">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="#">Test Agency Name</Link>
</IdentifierIdentity>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('IdentifierMasthead component', () => {
</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="domain.edu.mil.gov">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="#">Test Agency Name</Link>
</IdentifierIdentity>
</IdentifierMasthead>
Expand Down Expand Up @@ -74,7 +74,7 @@ describe('IdentifierMasthead component', () => {
<IdentifierLogo href="#">{testIdentifierLogo}</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="domain.edu.mil.gov">
{`An official website of the `}
<span aria-hidden="true">An</span>{` official website of the `}
<Link href="#">Test Agency Name</Link>
{`, `}
<Link href="#">Second Test Agency Name</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/stories/templates/createaccount.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export const CreateAccount = (): React.ReactElement => {
</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="domain.gov">
An official website of the <Link href="#">{`<Parent agency>`}</Link>
<span aria-hidden="true">An</span> official website of the <Link href="#">{`<Parent agency>`}</Link>
</IdentifierIdentity>
</IdentifierMasthead>
<IdentifierLinks navProps={{ 'aria-label': 'Important links' }}>
Expand Down
2 changes: 1 addition & 1 deletion src/stories/templates/mutliplesignin.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export const MultipleSignInOptions = (): React.ReactElement => {
</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="domain.gov">
An official website of the <Link href="#">{`<Parent agency>`}</Link>
<span aria-hidden="true">An</span> official website of the <Link href="#">{`<Parent agency>`}</Link>
</IdentifierIdentity>
</IdentifierMasthead>
<IdentifierLinks navProps={{ 'aria-label': 'Important links' }}>
Expand Down
2 changes: 1 addition & 1 deletion src/stories/templates/notfound.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export const NotFoundPage = (): React.ReactElement => {
</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain={'<domain.gov>'}>
An official website of the{' '}
<span aria-hidden="true">An</span> official website of the{' '}
<Link href="javascript:void(0);">{`<Parent agency>`}</Link>
</IdentifierIdentity>
</IdentifierMasthead>
Expand Down
2 changes: 1 addition & 1 deletion src/stories/templates/signin.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export const SignIn = (): React.ReactElement => {
</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="domain.gov">
An official website of the <Link href="#">{`<Parent agency>`}</Link>
<span aria-hidden="true">An</span> official website of the <Link href="#">{`<Parent agency>`}</Link>
</IdentifierIdentity>
</IdentifierMasthead>
<IdentifierLinks navProps={{ 'aria-label': 'Important links' }}>
Expand Down

0 comments on commit 25152d4

Please sign in to comment.