You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(lint): add rule to restrict container="full" usage
- Introduced a new ESLint rule to restrict the use of container="full" to direct children of nve-page elements.
- Updated relevant documentation and examples to reflect this change.
- Adjusted existing components and tests to comply with the new linting rule.
Signed-off-by: Cory Rylan <crylan@nvidia.com>
Copy file name to clipboardExpand all lines: projects/core/src/alert/alert.examples.ts
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ import { html } from 'lit';
5
5
import'@nvidia-elements/core/alert/define.js';
6
6
import'@nvidia-elements/core/button/define.js';
7
7
import'@nvidia-elements/core/divider/define.js';
8
+
import'@nvidia-elements/core/page/define.js';
8
9
9
10
exportdefault{
10
11
title: 'Elements/Alert',
@@ -20,6 +21,7 @@ export const Default = {
20
21
21
22
/**
22
23
* @summary Alert status variants for semantic messaging. Use accent for informational updates, warning for cautionary messages requiring attention, success for confirmations, and danger for errors or critical issues that may block user progress.
24
+
* @tags test-case
23
25
*/
24
26
exportconstSupportStatus={
25
27
render: ()=>html`
@@ -35,6 +37,7 @@ export const SupportStatus = {
35
37
36
38
/**
37
39
* @summary Extended status variants for workflow and process state communication. Use these specialized states (scheduled, queued, running, failed, etc.) in dashboards, build pipelines, or task management interfaces where users need detailed visibility into process lifecycle stages.
* @summary Card with full container styling that extends to the edges, suitable for full-width layouts or when you want the card to blend with its container.
152
+
* @tags test-case
151
153
*/
152
154
exportconstContainerFull={
153
155
render: ()=>html`
154
-
<nve-cardcontainer="full">
155
-
<nve-card-content>
156
-
<pnve-text="body">container full</p>
157
-
</nve-card-content>
158
-
</nve-card>
156
+
<nve-pagedocument-scroll>
157
+
<nve-cardcontainer="full">
158
+
<nve-card-content>
159
+
<pnve-text="body">container full</p>
160
+
</nve-card-content>
161
+
</nve-card>
162
+
</nve-page>
159
163
`
160
164
}
161
165
162
166
/**
163
167
* @summary Card with flat container styling that removes the default card elevation, ideal for subtle content containers or when you want a more minimal appearance.
168
+
* @tags test-case
164
169
*/
165
170
exportconstContainerFlat={
166
171
render: ()=>html`
@@ -198,6 +203,7 @@ export const Audit = {
198
203
199
204
/**
200
205
* @summary Card with overflow content, where the card body scrolls when content exceeds the card height.
0 commit comments