Skip to content

Conversation

@KenAJoh
Copy link
Collaborator

@KenAJoh KenAJoh commented Oct 14, 2025

Description

https://www.figma.com/design/hbHfla3HOYzEXWhncthKPm/NEW-Alert---InfoPanel?node-id=8547-2073&m=dev

Extracted contents from #4085

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 October 14, 2025 12:13
@changeset-bot
Copy link

changeset-bot bot commented Oct 14, 2025

🦋 Changeset detected

Latest commit: 1634cb0

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

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

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 introduces a new InlineMessage component that replaces the inline variant of the existing Alert component. The component provides contextual messages with icon support and multiple variants (info, success, warning, error).

Key changes:

  • New React component with icon integration and size variants
  • Complete CSS styling for both standard and darkside themes
  • Storybook stories demonstrating all component features

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
@navikt/core/react/src/inline-message/root/InlineMessage.tsx Main React component implementation with variant and size props
@navikt/core/react/src/inline-message/icon/InlineMessageIcon.tsx Icon component handling variant-specific icons
@navikt/core/react/src/inline-message/InlineMessage.stories.tsx Storybook stories for component documentation
@navikt/core/react/src/index.ts Export addition for new component
@navikt/core/react/package.json Package export configuration
@navikt/core/css/inline-message.css Component styling with variant colors
@navikt/core/css/darkside/inline-message.darkside.css Darkside theme styles
@navikt/core/css/index.css CSS import for component styles
@navikt/core/css/darkside/index.css Darkside CSS import
@navikt/core/css/config/_mappings.js Style mapping configuration
.changeset/metal-pigs-sing.md Changeset for the new component

@github-actions
Copy link
Contributor

github-actions bot commented Oct 14, 2025

Storybook demo / Chromatic

📝 Changes to review: 3

7f488b3f9 | 72 components | 127 stories

@KenAJoh KenAJoh changed the base branch from main to base-alert October 29, 2025 14:30
@KenAJoh KenAJoh merged commit a74c07e into base-alert Oct 29, 2025
3 of 4 checks passed
@KenAJoh KenAJoh deleted the inline-message-component branch October 29, 2025 14:32
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.

3 participants