Skip to content

Commit

Permalink
Merge pull request #6035 from maspetsberger/fix-iconfield-multi-icons
Browse files Browse the repository at this point in the history
Fix IconField when icons should appear at beginning and end.
  • Loading branch information
tugcekucukoglu authored Jul 22, 2024
2 parents db7cb34 + ce330bf commit f26bb8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/primevue/src/iconfield/style/IconFieldStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')});
}
`;
Expand Down

0 comments on commit f26bb8d

Please sign in to comment.