From 46469fe68ee3e89353cb885fbae09ef33053ff0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nadir=20Fejzi=C4=87?= Date: Fri, 14 Jun 2024 10:23:09 +0200 Subject: [PATCH] fix: use units in select label padding calculation (#5848) Addition in css' `calc` function [requires both operands to be ``](https://css-tricks.com/a-complete-guide-to-calc-in-css/#aa-addition-and-subtraction-require-both-numbers-to-be-lengths) --- packages/primevue/src/select/style/SelectStyle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/select/style/SelectStyle.js b/packages/primevue/src/select/style/SelectStyle.js index 279dcc7e4..6874a5aff 100644 --- a/packages/primevue/src/select/style/SelectStyle.js +++ b/packages/primevue/src/select/style/SelectStyle.js @@ -83,7 +83,7 @@ const theme = ({ dt }) => ` } .p-select:has(.p-select-clear-icon) .p-select-label { - padding-right: calc(1 + ${dt('select.padding.x')}); + padding-right: calc(1rem + ${dt('select.padding.x')}); } .p-select.p-disabled .p-select-label {