From ce330bf7622c6ff5ad4d35ca5d03765d80133461 Mon Sep 17 00:00:00 2001 From: Michael Aspetsberger Date: Tue, 9 Jul 2024 12:05:59 +0200 Subject: [PATCH] Fix IconField when icons should appear at beginning and end. --- packages/primevue/src/iconfield/style/IconFieldStyle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/primevue/src/iconfield/style/IconFieldStyle.js b/packages/primevue/src/iconfield/style/IconFieldStyle.js index ec56293efc..036bba7986 100644 --- a/packages/primevue/src/iconfield/style/IconFieldStyle.js +++ b/packages/primevue/src/iconfield/style/IconFieldStyle.js @@ -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')}); } `;