Skip to content

Commit

Permalink
Merge pull request #2555 from SpareBank1/sf-bedre-feilmeldinger
Browse files Browse the repository at this point in the history
Sf bedre feilmeldinger
  • Loading branch information
dagfrode authored Feb 24, 2025
2 parents 4709eeb + 34a4ca5 commit a6b003d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/ffe-context-message-react/src/ContextMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ export interface ContextMessageProps
/** Callback for when the context message has been closed (after the animation) */
onCloseRest?: () => void;
showCloseButton?: boolean;
/** Adds alternative styling for better contrast on certain backgrounds */
onColoredBg?: boolean;
/** @deprecated as part of update to Semantic Colors
*
* Use the `ffe-accent-color` class on the component or on the container of the component instead
* [Read more in the upgrade guide](https://sparebank1.github.io/designsystem/?path=/docs/introduksjon-changelog--docs#2025---februar---semantiske-farger) */
onColoredBg?: never;
}

/**
Expand Down
5 changes: 5 additions & 0 deletions packages/ffe-messages-react/src/MessageBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export interface MessageBoxProps extends React.ComponentPropsWithoutRef<'div'> {
type: MessageType;
/** Decides the language of the aria-label for the close icon */
locale?: Locale;
/** @deprecated as part of update to Semantic Colors
*
* Use the `ffe-accent-color` class on the component or on the container of the component instead
* [Read more in the upgrade guide](https://sparebank1.github.io/designsystem/?path=/docs/introduksjon-changelog--docs#2025---februar---semantiske-farger) */
onColoredBg?: never;
}

export const MessageBox: React.FC<MessageBoxProps> = ({
Expand Down
5 changes: 5 additions & 0 deletions packages/ffe-messages-react/src/SystemMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export interface SystemMessageProps
locale?: Locale;
/** Called when closed */
onClose?: () => void;
/** @deprecated as part of update to Semantic Colors
*
* Use the `ffe-accent-color` class on the component or on the container of the component instead
* [Read more in the upgrade guide](https://sparebank1.github.io/designsystem/?path=/docs/introduksjon-changelog--docs#2025---februar---semantiske-farger) */
onColoredBg?: never;
}

export const SystemMessage: React.FC<SystemMessageProps> = ({
Expand Down

0 comments on commit a6b003d

Please sign in to comment.