Skip to content

Commit 45f9dd1

Browse files
committed
fix(core): restore preferences input label capitalization
Signed-off-by: John Yanarella <jyanarella@nvidia.com>
1 parent 0ff44a6 commit 45f9dd1

4 files changed

Lines changed: 19 additions & 4 deletions

File tree

Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading

‎projects/core/src/preferences-input/preferences-input.css‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
flex-direction: column;
1515
}
1616

17+
nve-control,
18+
nve-switch {
19+
--label-text-transform: capitalize;
20+
}
21+
1722
nve-menu {
1823
--width:100%;
1924
}

‎projects/core/src/preferences-input/preferences-input.test.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ describe(`${PreferencesInput.metadata.tag}: style check`, () => {
3939
expect(customElements.get(PreferencesInput.metadata.tag)).toBeDefined();
4040
});
4141

42+
it('should capitalize the color scheme label',()=>{
43+
constlabel=element.shadowRoot.querySelector('label');
44+
45+
if(!(labelinstanceofHTMLLabelElement)){
46+
thrownewError('Expected a color scheme label');
47+
}
48+
49+
expect(getComputedStyle(label).textTransform).toBe('capitalize');
50+
});
51+
4252
/**
4353
* Test form properties
4454
*/

0 commit comments

Comments
 (0)