This component is only used for HealthCare. Please use the theme switcher to view the component with HealthCare styles.
Examples
The HealthCare.gov header component varies depending on the user's state (ie. logged-in) and context (ie. what page the user is on).
Logged-In
Logged-Out
Minimal
Code
React
Preact/React documentation for Storybook
Google Analytics
Analytics event tracking is enabled by default.
On applications where the page has utag
loaded, the data goes to Tealium which allows it to route to Google Analytics or the currently approved data analytics tools.
Disabling event tracking
Import and set the setHeaderSendsAnalytics
feature flag to false
in your application's entry file:
import { setHeaderSendsAnalytics } from '@cmsgov/<design-system-package>';
config({ headerSendsAnalytics: false });
Component maturity
This component meets 90% of our maturity criteria.
Incomplete criteria
- Incomplete
Forced Colors Mode (FCM):Â While using FCM the components text is legible and improves readability.
What does this mean?
Each component is tested against the following items to gauge the component's maturity. When using incomplete components, consider the unmet criteria as applied to your product.
For more information about how we tested and validated our work for each checklist item, read our component maturity documentation.
- Complete
Color:Â Meets AA color contrast standards for accessibility and color blindness.
- Incomplete
Forced Colors Mode (FCM):Â While using FCM the components text is legible and improves readability.
- Complete
WCAG 2.1 Level AA Conformance:Â All Axe checks for WCAG AA compliance have passed.
- Complete
Screen readers:Â VoiceOver, NVDA, and JAWS screen readers provide concise communication and interaction.
- Complete
Keyboard navigation:Â Component is fully navigable with a keyboard.
Accessibility
- Complete
Storybook:Â Component has stories to cover all defined props.
- Complete
Responsive:Â Component designed to work in all responsive breakpoints.
- Complete
Spanish translations:Â Includes Spanish translations for default text content.
Code
- Complete
Code:Â Tokens implemented in code.
- Complete
Design:Â Tokens implemented in the Sketch.