-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 [open-formulieren/open-forms#4546] Add alert styling to the soft re…
…quired errors component This enables it to be customized via NL DS design tokens, and provides some escape hatches to make it different from the standard warning alert appearance.
- Loading branch information
1 parent
e729aea
commit f3a8030
Showing
4 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@use 'microscope-sass/lib/bem'; | ||
|
||
@import '~microscope-sass/lib/typography'; | ||
|
||
.openforms-soft-required-errors { | ||
// apply all wysiwyg styling | ||
// TODO: parametrize this with design tokens -> check with NL DS how to approach this | ||
@include wysiwyg; | ||
|
||
// unset, takes the utrecht-alert--warning by default, but can be overridden if desired | ||
color: var(--of-soft-required-errors-color); | ||
background-color: var(--of-soft-required-errors-background-color); | ||
|
||
@include bem.element('missing-fields') { | ||
font-weight: var(--of-soft-required-errors-missing-fields-font-weight, 600); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters