File tree 3 files changed +28
-9
lines changed
packages/components/src/styles/components/form
showcase/app/templates/components/form
3 files changed +28
-9
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @hashicorp/design-system-components " : patch
3
+ ---
4
+
5
+ ` SuperSelect::Multiple ` - Fixed placeholder style and layout
Original file line number Diff line number Diff line change @@ -72,8 +72,11 @@ $hds-super-select-item-height: 36px;
72
72
margin-left : 0 ;
73
73
}
74
74
75
- .ember-power-select-placeholder {
75
+ .ember-power-select-placeholder {
76
76
color : var (--token-form-control-base-foreground-placeholder-color );
77
+ font-size : var (--token-typography-body-200-font-size );
78
+ font-family : var (--token-typography-body-200-font-family );
79
+ line-height : var (--token-typography-body-200-line-height );
77
80
}
78
81
79
82
// `BasicDropdown` uses `aria-disabled` on the trigger, see: https://ember-basic-dropdown.com/docs/disabled
@@ -272,6 +275,7 @@ $hds-super-select-item-height: 36px;
272
275
// Tag List
273
276
.ember-power-select-multiple-options {
274
277
display : flex ;
278
+ flex-grow : 1 ;
275
279
flex-wrap : wrap ;
276
280
gap : 4px ;
277
281
min-width : 0 ;
Original file line number Diff line number Diff line change 521
521
522
522
<Shw::Text::H2 >Form::SuperSelect::Multiple::Base</Shw::Text::H2 >
523
523
524
- <Shw::Text::H3 >Interaction</Shw::Text::H3 >
524
+ <Shw::Text::H3 >Interaction status </Shw::Text::H3 >
525
525
526
- <Shw::Flex @ direction = " row " as |SF |>
527
- <SF .Item {{ style flex = " 1 " }} @label =" Default" >
526
+ <Shw::Grid @ columns = {{ 3 }} as |SG |>
527
+ <SG .Item @label =" Default" >
528
528
<Hds::Form::SuperSelect::Multiple::Base
529
529
@onChange ={{ this.noop }}
530
530
@options ={{ @model.OPTIONS }}
533
533
>
534
534
{{ option }}
535
535
</Hds::Form::SuperSelect::Multiple::Base >
536
- </SF .Item>
537
-
538
- <SF .Item {{ style flex =" 1" }} @label =" Selected" >
536
+ </SG .Item>
537
+ <SG .Item @label =" With placeholder" >
538
+ <Hds::Form::SuperSelect::Multiple::Base
539
+ @onChange ={{ fn (mut @model.SELECTED_OPTIONS )}}
540
+ @options ={{ @model.OPTIONS }}
541
+ @placeholder =" Placeholder text for multiple selection"
542
+ @ariaLabel =" Label"
543
+ as |option|
544
+ >
545
+ {{ option }}
546
+ </Hds::Form::SuperSelect::Multiple::Base >
547
+ </SG .Item>
548
+ <SG .Item @label =" Selected" >
539
549
<Hds::Form::SuperSelect::Multiple::Base
540
550
@onChange ={{ fn (mut @model.SELECTED_OPTIONS )}}
541
551
@options ={{ @model.OPTIONS }}
545
555
>
546
556
{{ option }}
547
557
</Hds::Form::SuperSelect::Multiple::Base >
548
- </SF .Item>
549
- </Shw::Flex >
558
+ </SG .Item>
559
+ </Shw::Grid >
550
560
551
561
<Shw::Divider @level =" 2" />
552
562
You can’t perform that action at this time.
0 commit comments