-
Notifications
You must be signed in to change notification settings - Fork 43
[Example] New Alert-component examples #4290
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
base: base-alert
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds documentation examples for Alert-related components (GlobalAlert, LocalAlert, InlineMessage) and InfoCard component.
- Introduces comprehensive examples for GlobalAlert, LocalAlert, and InlineMessage showing different status variants, sizes, and features
- Adds InfoCard examples demonstrating colors, sizes, and usage patterns
- Establishes consistent example structure with Storybook integration
Reviewed Changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| aksel.nav.no/website/pages/eksempler/inline-message/sizes.tsx | InlineMessage size variants example |
| aksel.nav.no/website/pages/eksempler/inline-message/demo.tsx | InlineMessage basic demo with all status types |
| aksel.nav.no/website/pages/eksempler/info-card/title-only.tsx | InfoCard title-only variant with incorrect description |
| aksel.nav.no/website/pages/eksempler/info-card/sizes.tsx | InfoCard size variants with incorrect description |
| aksel.nav.no/website/pages/eksempler/info-card/eksempler.tsx | InfoCard advanced examples with incorrect description |
| aksel.nav.no/website/pages/eksempler/info-card/demo.tsx | InfoCard basic demo with incorrect description |
| aksel.nav.no/website/pages/eksempler/info-card/colors.tsx | InfoCard color variants with incorrect description |
| aksel.nav.no/website/pages/eksempler/alert-local/warning.tsx | LocalAlert warning status example |
| aksel.nav.no/website/pages/eksempler/alert-local/title-only.tsx | LocalAlert title-only variant with close button |
| aksel.nav.no/website/pages/eksempler/alert-local/success.tsx | LocalAlert success status example |
| aksel.nav.no/website/pages/eksempler/alert-local/sizes.tsx | LocalAlert size variants example |
| aksel.nav.no/website/pages/eksempler/alert-local/error.tsx | LocalAlert error status example |
| aksel.nav.no/website/pages/eksempler/alert-local/close-button.tsx | LocalAlert with close button functionality |
| aksel.nav.no/website/pages/eksempler/alert-local/announcement.tsx | LocalAlert announcement status example |
| aksel.nav.no/website/pages/eksempler/alert-global/warning.tsx | GlobalAlert warning status example |
| aksel.nav.no/website/pages/eksempler/alert-global/title-only.tsx | GlobalAlert title-only variant with close button |
| aksel.nav.no/website/pages/eksempler/alert-global/success.tsx | GlobalAlert success status example |
| aksel.nav.no/website/pages/eksempler/alert-global/sizes.tsx | GlobalAlert size variants example |
| aksel.nav.no/website/pages/eksempler/alert-global/error.tsx | GlobalAlert error status example |
| aksel.nav.no/website/pages/eksempler/alert-global/close-button.tsx | GlobalAlert with close button functionality |
| aksel.nav.no/website/pages/eksempler/alert-global/announcement.tsx | GlobalAlert announcement status example |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Description
Are there any examples we are missing?
Component Checklist 📝
@navikt/core/css/config/_mappings.js)@navikt/core/css/tokens.json)@navikt/aksel-stylelint/src/deprecations.ts)@navikt/core/react/src/index.tsand@navikt/core/react/package.json)@navikt/core/css/index.css)<Component>: <gitmoji?> <Text>.E.g. "Button: ✨ Add feature xyz.")