Skip to content

Commit 5ca341e

Browse files
committed
fix: styles in Label and NumberInput
1 parent a9da929 commit 5ca341e

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

.changeset/grumpy-planes-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Change the default Label preset to `t3m`.

.changeset/spicy-jeans-promise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Use right text alignment in NumberInput component.

src/components/fields/NumberInput/NumberInput.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ export interface CubeNumberInputProps
2121
}
2222

2323
const StyledTextInputBase = tasty(TextInputBase, {
24+
styles: {
25+
textAlign: 'right',
26+
},
2427
wrapperStyles: {
2528
width: 'initial 13x 100%',
2629
},

src/components/form/Label.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const INLINE_LABEL_STYLES: Styles = {
5959

6060
export const LABEL_STYLES: Styles = {
6161
display: 'block',
62-
preset: 'h6',
62+
preset: 't3m',
6363
color: {
6464
'': '#dark',
6565
invalid: '#danger-text',

0 commit comments

Comments
 (0)