Skip to content

Commit

Permalink
remove neutral color on validationmessage
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz committed Dec 13, 2024
1 parent dbf8dd3 commit b81a259
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions packages/css/src/validation-message.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,4 @@
--dsc-validation-message-icon-url: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M3.25 4A.75.75 0 0 1 4 3.25h16a.75.75 0 0 1 .75.75v16a.75.75 0 0 1-.75.75H4a.75.75 0 0 1-.75-.75zM11 7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0m-1.25 3a.75.75 0 0 1 .75-.75H12a.75.75 0 0 1 .75.75v4.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75v-4h-.75a.75.75 0 0 1-.75-.75'/%3E%3C/svg%3E");
--dsc-validation-message-color: var(--ds-color-info-text-subtle);
}

&[data-color='neutral'] {
--dsc-validation-message-icon-url: unset;
--dsc-validation-message-color: unset; /* This does not set the color to "neutral". This will inherit the closest `color` set. */
--dsc-validation-message-gap: 0; /* We don't display an icon for this */

&::before {
display: none;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type ValidationMessageProps = MergeRight<
* Sets color and icon.
* @default 'danger'
*/
'data-color'?: SeverityColors | 'neutral';
'data-color'?: SeverityColors;
/**
* Change the default rendered element for the one passed as a child, merging their props and behavior.
* @default false
Expand Down

0 comments on commit b81a259

Please sign in to comment.