decrease active label width

This commit is contained in:
tom
2022-08-18 11:11:31 +03:00
parent c72c75fdf2
commit c23c3f32cb
+3 -1
View File
@@ -12,6 +12,7 @@ const getActiveLabelStyles = (theme: Dict, fc: string, bc: string, size: 'md' |
color: getColor(theme, fc),
fontSize: 'xs',
lineHeight: '16px',
borderTopRightRadius: 'none',
};
switch (size) {
@@ -38,6 +39,7 @@ const getDefaultLabelStyles = (size: 'md' | 'lg') => {
fontSize: 'md',
lineHeight: '20px',
padding: '18px 16px',
right: '18px',
};
}
@@ -46,6 +48,7 @@ const getDefaultLabelStyles = (size: 'md' | 'lg') => {
fontSize: 'md',
lineHeight: '24px',
padding: '28px 24px',
right: '26px',
};
}
}
@@ -107,7 +110,6 @@ const variantFloating: PartsStyleFunction<typeof parts> = (props: StyleFunctionP
label: {
...getDefaultLabelStyles(size),
left: '2px',
right: '2px',
top: '2px',
zIndex: 2,
position: 'absolute',