Skip to content

Conversation

@KenAJoh
Copy link
Collaborator

@KenAJoh KenAJoh commented Nov 14, 2025

Description

Are there any examples we are missing?

Component Checklist 📝

  • JSDoc
  • Examples
  • Documentation / Decision Records
  • Storybook
  • Style mappings (@navikt/core/css/config/_mappings.js)
  • Component tokens (@navikt/core/css/tokens.json)
  • CSS class deprecations (@navikt/aksel-stylelint/src/deprecations.ts)
  • Exports (@navikt/core/react/src/index.ts and @navikt/core/react/package.json)
  • New component? CSS import (@navikt/core/css/index.css)
  • Breaking change? Update migration guide. Consider codemod.
  • Changeset (Format: <Component>: <gitmoji?> <Text>. E.g. "Button: ✨ Add feature xyz.")

@KenAJoh KenAJoh requested a review from Copilot November 14, 2025 13:13
@changeset-bot
Copy link

changeset-bot bot commented Nov 14, 2025

⚠️ No Changeset found

Latest commit: 6d6d40f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot finished reviewing on behalf of KenAJoh November 14, 2025 13:14
Copy link
Contributor

Copilot AI left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants