1212 :fill =" appearanceRef"
1313 @click =" openPopover($event)"
1414 id =" dropdown-popover-button"
15- class =" filter -button form-input"
15+ class =" dropdown -button form-input"
1616 :class =" isPopoverOpen ? 'active' : ''"
1717 :disabled =" disabled"
1818 >
19- <ion-icon
20- :class =" { 'popover-is-open': isPopoverOpen }"
21- class =" ms-dropdown-icon"
22- slot =" end"
23- :icon =" getIcon()"
24- />
25- <span class =" input-text" >{{ $msTranslate(labelRef) }}</span >
19+ <div class =" dropdown-button-content" >
20+ <span class =" input-text" >{{ $msTranslate(labelRef) }}</span >
21+ <ion-icon
22+ :class =" { 'popover-is-open': isPopoverOpen }"
23+ class =" ms-dropdown-icon"
24+ :icon =" getIcon()"
25+ />
26+ </div >
2627 </ion-button >
2728 </div >
2829</template >
@@ -130,10 +131,9 @@ function getIcon(): string {
130131 </script >
131132
132133<style lang="scss" scoped>
133- .filter -button {
134+ .dropdown -button {
134135 background : none ;
135136 color : var (--parsec-color-light-primary-800 );
136- --border-color-hover : none ;
137137 margin : 0 ;
138138
139139 .input-text {
@@ -144,6 +144,24 @@ function getIcon(): string {
144144
145145 & ::part (native ) {
146146 border-radius : var (--parsec-radius-8 );
147+ border-color : var (--parsec-color-light-secondary-light );
148+ padding : 0 !important ;
149+ --ripple-color : transparent ;
150+ }
151+
152+ & :hover {
153+ & ::part (native ) {
154+ border-color : var (--parsec-color-light-primary-300 );
155+ }
156+ }
157+
158+ & -content {
159+ display : flex ;
160+ justify-content : space-between ;
161+ align-items : center ;
162+ width : 100% ;
163+ gap : 0.5rem ;
164+ padding : 0.625rem 1rem ;
147165 }
148166}
149167
@@ -162,22 +180,25 @@ function getIcon(): string {
162180 --background : var (--parsec-color-light-secondary-background );
163181 outline : var (--offset ) solid var (--parsec-color-light-outline );
164182 border-radius : var (--parsec-radius-8 );
183+
184+ & ::part (native ) {
185+ border : 1px solid var (--parsec-color-light-primary-300 );
186+ }
165187 }
166188
167189 .form-label {
168190 color : var (--parsec-color-light-primary-700 );
169191 }
170192
171193 & .large {
172- .filter -button ::part (native ) {
194+ .dropdown -button ::part (native ) {
173195 padding : 0.625rem 1rem ;
174196 }
175197 }
176198}
177199
178200.ms-dropdown-icon {
179- margin-left : 0.5em ;
180- font-size : 1.25rem ;
201+ font-size : 1.125rem ;
181202 transition : transform ease-out 300ms ;
182203 color : var (--parsec-color-light-secondary-grey );
183204
0 commit comments