Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions projects/core/.visual/preferences-input.dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions projects/core/.visual/preferences-input.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions projects/core/src/preferences-input/preferences-input.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
flex-direction: column;
}

nve-control,
nve-switch {
--label-text-transform: capitalize;
}

nve-menu {
--width: 100%;
}
10 changes: 10 additions & 0 deletions projects/core/src/preferences-input/preferences-input.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ describe(`${PreferencesInput.metadata.tag}: style check`, () => {
expect(customElements.get(PreferencesInput.metadata.tag)).toBeDefined();
});

it('should capitalize the color scheme label', () => {
const label = element.shadowRoot.querySelector('label');

if (!(label instanceof HTMLLabelElement)) {
throw new Error('Expected a color scheme label');
}

expect(getComputedStyle(label).textTransform).toBe('capitalize');
});

/**
* Test form properties
*/
Expand Down