Skip to content

Commit

Permalink
TreeSelect: showClear attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Aug 14, 2023
1 parent b884d16 commit 35b7031
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion theme-base/components/input/_treeselect.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down Expand Up @@ -125,4 +136,4 @@
background-color: $inputFilledFocusBg;
}
}
}
}

0 comments on commit 35b7031

Please sign in to comment.