From 35b703188673f4d9b0b3715e4cbc79629ccd4392 Mon Sep 17 00:00:00 2001 From: Melloware Date: Mon, 14 Aug 2023 10:34:52 -0400 Subject: [PATCH] TreeSelect: showClear attribute --- theme-base/components/input/_treeselect.scss | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/theme-base/components/input/_treeselect.scss b/theme-base/components/input/_treeselect.scss index 3a11714..619d508 100644 --- a/theme-base/components/input/_treeselect.scss +++ b/theme-base/components/input/_treeselect.scss @@ -14,6 +14,12 @@ @include focused-input(); } + &.p-treeselect-clearable { + .p-treeselect-label { + padding-right: nth($inputPadding, 2) + $primeIconFontSize; + } + } + .p-treeselect-label { padding: $inputPadding; transition: $formElementTransition; @@ -40,6 +46,11 @@ border-top-right-radius: $borderRadius; border-bottom-right-radius: $borderRadius; } + + .p-treeselect-clear-icon { + color: $inputIconColor; + right: $inputGroupAddOnMinWidth; + } &.p-invalid.p-component { @include invalid-input(); @@ -125,4 +136,4 @@ background-color: $inputFilledFocusBg; } } -} \ No newline at end of file +}