Skip to content

Commit

Permalink
feat(ErrorMessage): ✨ Add large size (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz authored and Magnusrm committed Sep 27, 2023
1 parent 42a66df commit 4eb3ad4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
margin-bottom: var(--fdsc-bottom-spacing);
}

.errorMessage.large {
--fdsc-bottom-spacing: var(--fds-spacing-5);

font: var(--fds-typography-error_message-large);
font-family: var(--fdsc-typography-font-family);
}

.errorMessage.medium {
--fdsc-bottom-spacing: var(--fds-spacing-5);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import classes from './ErrorMessage.module.css';

export type ErrorMessageProps = {
/** Changes text sizing */
size?: 'xsmall' | 'small' | 'medium';
size?: 'xsmall' | 'small' | 'medium' | 'large';
/** Adds margin-bottom */
spacing?: boolean;
/** Toggle error color */
Expand Down

0 comments on commit 4eb3ad4

Please sign in to comment.