Skip to content

Commit 03c481f

Browse files
committed
fix(core): page header text wrap issue
Signed-off-by: Cory Rylan <crylan@nvidia.com>
1 parent ba3230a commit 03c481f

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
2+
/* SPDX-License-Identifier: Apache-2.0 */
3+
4+
nve-page-header [nve-text] {
5+
text-wrap-mode: nowrap;
6+
}

projects/core/src/page-header/page-header.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
import { html, LitElement } from 'lit';
5-
import { useStyles, attachInternals } from '@nvidia-elements/core/internal';
5+
import { useStyles, attachInternals, appendRootNodeStyle } from '@nvidia-elements/core/internal';
66
import styles from './page-header.css?inline';
7+
import globalStyles from './page-header.global.css?inline';
78

89
/**
910
* @element nve-page-header
@@ -46,6 +47,7 @@ export class PageHeader extends LitElement {
4647

4748
connectedCallback(): void {
4849
super.connectedCallback();
50+
appendRootNodeStyle(this, globalStyles);
4951
attachInternals(this);
5052
this._internals.role = 'navigation';
5153
}

0 commit comments

Comments
 (0)