Merge pull request #6035 from maspetsberger/fix-iconfield-multi-icons
Fix IconField when icons should appear at beginning and end.pull/6101/head
commit
f26bb8d023
|
@ -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