Skip to content

Commit

Permalink
Fix IconField when icons should appear at beginning and end.
Browse files Browse the repository at this point in the history
  • Loading branch information
maspetsberger committed Jul 9, 2024
1 parent 3440bb9 commit ce330bf
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 ce330bf

Please sign in to comment.