Fix IconField when icons should appear at beginning and end.
parent
3440bb9931
commit
ce330bf762
|
@ -20,11 +20,11 @@ const theme = ({ dt }) => `
|
||||||
right: ${dt('form.field.padding.x')};
|
right: ${dt('form.field.padding.x')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-iconfield .p-inputtext:last-child {
|
.p-iconfield .p-inputtext:not(:first-child) {
|
||||||
padding-left: calc((${dt('form.field.padding.x')} * 2) + ${dt('icon.size')});
|
padding-left: calc((${dt('form.field.padding.x')} * 2) + ${dt('icon.size')});
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-iconfield .p-inputtext:first-child {
|
.p-iconfield .p-inputtext:not(:last-child) {
|
||||||
padding-right: calc((${dt('form.field.padding.x')} * 2) + ${dt('icon.size')});
|
padding-right: calc((${dt('form.field.padding.x')} * 2) + ${dt('icon.size')});
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in New Issue