Skip to content

Commit 8f74cc1

Browse files
committed
chore(dropdown single): add support for option placeholder align to right
1 parent 7b63b62 commit 8f74cc1

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

projects/fusion-ui/components/dropdown/v4/dropdown-v4.component.scss

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
$optionsMaxHeight: 300px;
1010
$searchHeight: 28px;
1111

12+
%location {
13+
&.options-locate-right {
14+
left: auto;
15+
}
16+
17+
&.options-locate-left {
18+
right: auto;
19+
}
20+
}
21+
1222
:host {
1323
margin: 0;
1424
padding: 0;
@@ -32,6 +42,7 @@ $searchHeight: 28px;
3242
border: solid 1px var(--common-divider, #{$color-v4-common-divider});
3343
background-color: var(--background-default, #{$color-v4-background-default});
3444
box-shadow: var(--box-shadow-lg, #{$boxShadowV4-LG});
45+
@extend %location;
3546

3647
.options-holder {
3748
overflow-y: auto;
@@ -46,23 +57,27 @@ $searchHeight: 28px;
4657
flex-direction: column;
4758
gap: var(--spacing-50, #{$spacingV4-50});
4859
padding: 0 var(--spacing-50, #{$spacingV4-50}) 0 0;
49-
&.fu-loading{
60+
61+
&.fu-loading {
5062
gap: 0;
5163
}
5264

53-
.fu-loader-holder{
65+
.fu-loader-holder {
5466
display: flex;
5567
align-items: center;
5668
gap: 8px;
5769
height: 30px;
58-
fusion-loader{
70+
71+
fusion-loader {
5972
width: 20px;
6073
height: 20px;
6174
}
75+
6276
color: var(--text-disabled, #{$color-v4-text-disabled});
6377
@extend %font-v4-body-2;
6478
padding: var(--spacing-75, #{$spacingV4-75}) var(--spacing-100, #{$spacingV4-100});
6579
}
80+
6681
.no-results {
6782
color: var(--text-disabled, #{$color-v4-text-disabled});
6883
@extend %font-v4-body-2;

0 commit comments

Comments
 (0)