Skip to content
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

VACMS-17307: Update alert and link for cta widget #28360

Merged
merged 2 commits into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import React from 'react';

export default function CallToActionAlert({
heading,

Check warning on line 4 in src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx

View workflow job for this annotation

GitHub Actions / Linting (Files Changed)

src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx:4:3:'heading' is missing in props validation
headerLevel = 3,

Check warning on line 5 in src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx

View workflow job for this annotation

GitHub Actions / Linting (Files Changed)

src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx:5:3:'headerLevel' is missing in props validation
alertText,

Check warning on line 6 in src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx

View workflow job for this annotation

GitHub Actions / Linting (Files Changed)

src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx:6:3:'alertText' is missing in props validation
primaryButtonText,

Check warning on line 7 in src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx

View workflow job for this annotation

GitHub Actions / Linting (Files Changed)

src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx:7:3:'primaryButtonText' is missing in props validation
primaryButtonHandler,

Check warning on line 8 in src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx

View workflow job for this annotation

GitHub Actions / Linting (Files Changed)

src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx:8:3:'primaryButtonHandler' is missing in props validation
secondaryButtonText,

Check warning on line 9 in src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx

View workflow job for this annotation

GitHub Actions / Linting (Files Changed)

src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx:9:3:'secondaryButtonText' is missing in props validation
secondaryButtonHandler,

Check warning on line 10 in src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx

View workflow job for this annotation

GitHub Actions / Linting (Files Changed)

src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx:10:3:'secondaryButtonHandler' is missing in props validation
status,

Check warning on line 11 in src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx

View workflow job for this annotation

GitHub Actions / Linting (Files Changed)

src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx:11:3:'status' is missing in props validation
ariaLabel = null,

Check warning on line 12 in src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx

View workflow job for this annotation

GitHub Actions / Linting (Files Changed)

src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx:12:3:'ariaLabel' is missing in props validation
ariaDescribedby = null,

Check warning on line 13 in src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx

View workflow job for this annotation

GitHub Actions / Linting (Files Changed)

src/applications/static-pages/cta-widget/components/CallToActionAlert.jsx:13:3:'ariaDescribedby' is missing in props validation
}) {
const CustomHeaderLevel = `h${headerLevel}`;
return (
<va-alert visible status={status}>
<va-alert visible status={status} uswds>
<CustomHeaderLevel slot="headline">{heading}</CustomHeaderLevel>
<div>
{alertText}
Expand All @@ -24,7 +24,7 @@
text={primaryButtonText}
aria-label={ariaLabel}
aria-describedby={ariaDescribedby}
uswds={false}
uswds
/>
)}
{secondaryButtonText && (
Expand Down
Loading