Fix IconField when icons should appear at beginning and end.

pull/6035/head
Michael Aspetsberger 2024-07-09 12:05:59 +02:00
parent 3440bb9931
commit ce330bf762
1 changed files with 2 additions and 2 deletions

View File

@ -20,11 +20,11 @@ const theme = ({ dt }) => `
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')});
}
.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')});
}
`;