-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui-component): Code list validation (#13941)
- Loading branch information
Showing
13 changed files
with
283 additions
and
32 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
10 changes: 10 additions & 0 deletions
10
...omponents/StudioCodelistEditor/StudioCodeListEditorRow/StudioCodeListEditorRow.module.css
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,10 @@ | ||
.textfieldCell:has(input:invalid) { | ||
background-color: var(--fds-semantic-surface-danger-subtle); | ||
--fds-semantic-border-input-default: var(--fds-semantic-border-danger-default); | ||
--fds-semantic-border-input-hover: var( | ||
--fds-semantic-border-danger-hover | ||
); /* Todo: Remove this when https://github.com/digdir/designsystemet/issues/2701 is fixed. */ | ||
--fds-semantic-border-input-active: var( | ||
--fds-semantic-border-danger-active | ||
); /* Todo: Remove this when https://github.com/digdir/designsystemet/issues/2701 is fixed. */ | ||
} |
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
1 change: 1 addition & 0 deletions
1
frontend/libs/studio-components/src/components/StudioCodelistEditor/types/ValueError.ts
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 @@ | ||
export type ValueError = 'duplicateValue'; |
Oops, something went wrong.