Merge pull request #6035 from maspetsberger/fix-iconfield-multi-icons

Fix IconField when icons should appear at beginning and end.
pull/6101/head
Tuğçe Küçükoğlu 2024-07-22 09:07:11 +03:00 committed by GitHub
commit f26bb8d023
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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')});
}
`;