Skip to content

Commit 61113ad

Browse files
committed
fix(styles): add width rule for row layout with space-between alignment
- set the width to 100% for elements with the row layout and space-between alignment. - This enhancement improves agent assumptions and layout consistency across components. Signed-off-by: Cory Rylan <crylan@nvidia.com>
1 parent a634e39 commit 61113ad

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎projects/styles/package.json‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44
"release": {
55
"extends": "../../release.config.js"
66
},
7-
"description": "Core CSS foundation for the Elements design system, providing layout utilities, typography styles, and view transitions.",
7+
"description": "Core CSS foundation for the NVIDIA Elements design system, providing layout utilities, typography styles, and view transitions.",
88
"keywords": [
9+
"nvidia",
10+
"design-system",
911
"css",
12+
"css-utilities",
1013
"layout",
11-
"typography"
14+
"typography",
15+
"view-transitions"
1216
],
1317
"homepage": "https://NVIDIA.github.io/elements/",
1418
"customElements": "dist/custom-elements.json",

‎projects/styles/src/layout.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@
163163
gap:var(--nve-ref-space-none);
164164
}
165165

166+
&[nve-layout~='row'][nve-layout~='align:space-between'] {
167+
width:100%;
168+
}
169+
166170
&[nve-layout~='align:space-evenly'] {
167171
justify-content: space-evenly;
168172
gap:var(--nve-ref-space-none);

0 commit comments

Comments
 (0)