From 273011cec66512ca5d4e89d52b93ac8863c42370 Mon Sep 17 00:00:00 2001 From: Nadir Fejzic Date: Thu, 6 Jun 2024 19:06:09 +0200 Subject: [PATCH] fix: use units in select label padding calculation 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) --- components/lib/select/style/SelectStyle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/select/style/SelectStyle.js b/components/lib/select/style/SelectStyle.js index d3db30a397..f50bd99527 100644 --- a/components/lib/select/style/SelectStyle.js +++ b/components/lib/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 {