Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/clean-files-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@utrecht/spotlight-section-css": patch
"@utrecht/alert-css": patch
---

Add flex column layout to Alert and Spotlight for row-gap support, add row-gap token to spotlight-section
4 changes: 4 additions & 0 deletions components/alert/src/_mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
}

@mixin utrecht-alert__content {
display: flex;
flex-direction: column;
row-gap: var(--utrecht-alert-content-row-gap);
}

Expand All @@ -37,6 +39,8 @@
--utrecht-heading-color: var(--utrecht-alert-color);
--utrecht-paragraph-color: var(--utrecht-alert-color);

display: flex;
flex-direction: column;
row-gap: var(--utrecht-alert-message-row-gap);
}

Expand Down
3 changes: 3 additions & 0 deletions components/spotlight-section/src/_mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
border-style: solid;
border-width: var(--_utrecht-spotlight-section-border-width, var(--utrecht-spotlight-section-border-width, 0));
color: var(--_utrecht-spotlight-section-color, var(--utrecht-spotlight-section-color));
display: flex;
flex-direction: column;
margin-block-end: calc(var(--utrecht-space-around, 0) * var(--utrecht-spotlight-section-margin-block-end, 0));
margin-block-start: calc(var(--utrecht-space-around, 0) * var(--utrecht-spotlight-section-margin-block-start, 0));
padding-block-end: var(--utrecht-spotlight-section-padding-block-end);
padding-block-start: var(--utrecht-spotlight-section-padding-block-start);
padding-inline-end: var(--utrecht-spotlight-section-padding-inline-end);
padding-inline-start: var(--utrecht-spotlight-section-padding-inline-start);
row-gap: var(--utrecht-spotlight-section-row-gap);
Comment thread
Robbert marked this conversation as resolved.
}

@mixin utrecht-spotlight-section-type($type) {
Expand Down
10 changes: 10 additions & 0 deletions components/spotlight-section/src/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@
},
"type": "spacing"
},
"row-gap": {
"$extensions": {
"nl.nldesignsystem.css.property": {
"syntax": "<length>",
"inherits": true
},
"nl.nldesignsystem.figma.supports-token": false
},
"type": "spacing"
},
"margin-block-start": {
"$extensions": {
"nl.nldesignsystem.css.property": {
Expand Down
Loading