Skip to content

Commit afdcb21

Browse files
committed
fix(core): line height and wrap fix
- fix regression with line height and text wrap Signed-off-by: Cory Rylan <crylan@nvidia.com>
1 parent 1c1e64f commit afdcb21

6 files changed

Lines changed: 11 additions & 8 deletions

File tree

projects/core/src/badge/badge.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
--border: 0;
1212
--border-radius: var(--nve-ref-border-radius-sm);
1313
--font-weight: var(--nve-ref-font-weight-semibold);
14-
--text-transform: capitalize;
14+
--text-transform: initial;
1515
--width: initial;
1616
--height: var(--nve-ref-size-600);
1717
display: inline-flex;

projects/core/src/breadcrumb/breadcrumb.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ li {
3232
display: flex;
3333
align-items: center;
3434
justify-content: center;
35+
text-wrap: nowrap;
3536
height: var(--_height);
3637
}
3738

projects/core/src/card/card-content.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* SPDX-License-Identifier: Apache-2.0 */
33

44
:host {
5-
--padding: var(--nve-ref-size-300) var(--nve-ref-size-400);
5+
--padding: var(--nve-ref-size-400);
66
padding: var(--padding);
77
color: var(--color);
88
flex-grow: 1;

projects/core/src/card/card-header.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* SPDX-License-Identifier: Apache-2.0 */
33

44
:host {
5-
--padding: var(--nve-ref-size-300) var(--nve-ref-size-400);
5+
--padding: var(--nve-ref-size-400);
66
--border-bottom: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);
77
--line-height: 1em;
88
--gap: var(--nve-ref-space-xs);
@@ -27,7 +27,6 @@
2727
}
2828

2929
::slotted([slot='title']) {
30-
margin: 0;
3130
font-size: var(--nve-ref-font-size-200);
3231
font-weight: var(--nve-ref-font-weight-bold);
3332
}

projects/core/src/toolbar/toolbar.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@
117117
--border-bottom: 0;
118118
}
119119

120-
::slotted(nve-button) {
121-
--color: var(--nve-sys-text-muted-color);
122-
}
123-
124120
slot:not([name]) {
125121
gap: var(--gap);
126122
width: 100%;
@@ -145,3 +141,9 @@ slot:not([name]) {
145141
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
146142
margin-block-end: -14px;
147143
}
144+
145+
::slotted([nve-text]),
146+
::slotted(a),
147+
::slotted(span) {
148+
text-wrap: nowrap !important;
149+
}

projects/core/src/tree/tree-node.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ input {
125125
text-decoration: none !important;
126126
color: var(--color) !important;
127127
outline: 0;
128+
vertical-align: middle;
128129
}
129130

130131
::slotted(a)::after {

0 commit comments

Comments
 (0)