Adjustments to float label cosmetics

pull/6439/head
Cagatay Civici 2024-09-18 13:16:51 +03:00
parent 8c4b843535
commit c98ccb480d
9 changed files with 26 additions and 14 deletions

View File

@ -95,11 +95,6 @@
"name": "Editor", "name": "Editor",
"to": "/editor" "to": "/editor"
}, },
{
"name": "IftaLabel",
"to": "/iftalabel",
"badge": "NEW"
},
{ {
"name": "FloatLabel", "name": "FloatLabel",
"to": "/floatlabel", "to": "/floatlabel",
@ -109,6 +104,11 @@
"name": "IconField", "name": "IconField",
"to": "/iconfield" "to": "/iconfield"
}, },
{
"name": "IftaLabel",
"to": "/iftalabel",
"badge": "NEW"
},
{ {
"name": "InputGroup", "name": "InputGroup",
"to": "/inputgroup" "to": "/inputgroup"

View File

@ -35,7 +35,7 @@ const theme = ({ dt }) => `
.p-floatlabel:has(textarea.p-filled) label, .p-floatlabel:has(textarea.p-filled) label,
.p-floatlabel:has(.p-inputwrapper-focus) label, .p-floatlabel:has(.p-inputwrapper-focus) label,
.p-floatlabel:has(.p-inputwrapper-filled) label { .p-floatlabel:has(.p-inputwrapper-filled) label {
top: ${dt('floatlabel.focus.top')}; top: ${dt('floatlabel.over.focus.top')};
margin-top: 0; margin-top: 0;
font-size: ${dt('floatlabel.focus.font.size')}; font-size: ${dt('floatlabel.focus.font.size')};
font-weight: ${dt('floatlabel.label.focus.font.weight')}; font-weight: ${dt('floatlabel.label.focus.font.weight')};

View File

@ -8,11 +8,15 @@ export default {
positionX: '{form.field.padding.x}', positionX: '{form.field.padding.x}',
fontWeight: '500', fontWeight: '500',
focus: { focus: {
top: '-1.25rem', fontSize: '0.75rem',
fontSize: '0.875rem',
fontWeight: '400' fontWeight: '400'
} }
}, },
over: {
focus: {
top: '-1.25rem'
}
},
in: { in: {
input: { input: {
paddingTop: '1.5rem' paddingTop: '1.5rem'

View File

@ -6,7 +6,7 @@ export default {
transitionDuration: '0.2s', transitionDuration: '0.2s',
positionX: '{form.field.padding.x}', positionX: '{form.field.padding.x}',
top: '{form.field.padding.y}', top: '{form.field.padding.y}',
fontSize: '0.875rem', fontSize: '0.75rem',
fontWeight: '400' fontWeight: '400'
}, },
input: { input: {

View File

@ -174,7 +174,7 @@ export default {
disabledColor: '{surface.500}', disabledColor: '{surface.500}',
placeholderColor: '{surface.500}', placeholderColor: '{surface.500}',
floatLabelColor: '{surface.500}', floatLabelColor: '{surface.500}',
floatLabelFocusColor: '{primary.color}', floatLabelFocusColor: '{primary.600}',
floatLabelActiveColor: '{surface.500}', floatLabelActiveColor: '{surface.500}',
floatLabelInvalidColor: '{red.400}', floatLabelInvalidColor: '{red.400}',
iconColor: '{surface.500}', iconColor: '{surface.500}',

View File

@ -8,11 +8,15 @@ export default {
positionX: '{form.field.padding.x}', positionX: '{form.field.padding.x}',
fontWeight: '500', fontWeight: '500',
focus: { focus: {
top: '-1.25rem',
fontSize: '0.875rem', fontSize: '0.875rem',
fontWeight: '400' fontWeight: '400'
} }
}, },
over: {
focus: {
top: '-1.25rem'
}
},
in: { in: {
input: { input: {
paddingTop: '1.875rem' paddingTop: '1.875rem'

View File

@ -6,7 +6,7 @@ export default {
transitionDuration: '0.2s', transitionDuration: '0.2s',
positionX: '{form.field.padding.x}', positionX: '{form.field.padding.x}',
top: '{form.field.padding.y}', top: '{form.field.padding.y}',
fontSize: '0.875rem', fontSize: '0.75rem',
fontWeight: '400' fontWeight: '400'
}, },
input: { input: {

View File

@ -8,11 +8,15 @@ export default {
positionX: '{form.field.padding.x}', positionX: '{form.field.padding.x}',
fontWeight: '500', fontWeight: '500',
focus: { focus: {
top: '-1.25rem',
fontSize: '0.875rem', fontSize: '0.875rem',
fontWeight: '400' fontWeight: '400'
} }
}, },
over: {
focus: {
top: '-1.25rem'
}
},
in: { in: {
input: { input: {
paddingTop: '1.5rem' paddingTop: '1.5rem'

View File

@ -6,7 +6,7 @@ export default {
transitionDuration: '0.2s', transitionDuration: '0.2s',
positionX: '{form.field.padding.x}', positionX: '{form.field.padding.x}',
top: '{form.field.padding.y}', top: '{form.field.padding.y}',
fontSize: '0.875rem', fontSize: '0.75rem',
fontWeight: '400' fontWeight: '400'
}, },
input: { input: {