Skip to content

Commit

Permalink
HDS-3221 Style default tags for multi-select, adjust padding and spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinLBradley committed Mar 28, 2024
1 parent 257ccc9 commit 2519bdb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
14 changes: 13 additions & 1 deletion showcase/app/styles/showcase-pages/super-select/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,20 @@
}

// Multiple Select
// Tags
// Tag List (Note: May be replaced with HDS Tag component in the future)
.ember-power-select-multiple-options {
display: flex;
gap: 4px;
list-style: none;
}

// tag items
.ember-power-select-multiple-option {
float: none;
margin: 0;
font-size: var(--token-typography-body-100-font-size);
line-height: var(--token-typography-body-100-line-height);
background-color: var(--token-form-control-base-surface-color-default);
border-radius: 500px;
}
}
21 changes: 20 additions & 1 deletion showcase/app/templates/components/super-select.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
</SF.Item>
</Shw::Flex>

<Shw::Text::H4>Dropdown</Shw::Text::H4>

<Shw::Flex @direction="row" as |SF|>
<SF.Item {{style flex="1" padding-bottom="12em"}} @label="No search">
<Hds::SuperSelect::Single
Expand Down Expand Up @@ -93,8 +95,25 @@
{{option}}
</Hds::SuperSelect::Multiple>
</SF.Item>
</Shw::Flex>

<Shw::Text::H4>Dropdown</Shw::Text::H4>
<Shw::Text::Body>Note: Tags will likely be replaced with HDS Tag (current ones are styled default tags)</Shw::Text::Body>

<SF.Item @label="Search enabled" {{style padding-bottom="12em"}}>
<Shw::Flex @direction="row" as |SF|>
<SF.Item {{style flex="1" padding-bottom="12em"}} @label="No search">
<Hds::SuperSelect::Multiple
@onChange={{this.noop}}
@options={{@model.OPTIONS}}
@selected={{@model.SELECTEDMULTIPLE}}
@initiallyOpened={{true}}
as |option|
>
{{option}}
</Hds::SuperSelect::Multiple>
</SF.Item>

<SF.Item {{style flex="1" padding-bottom="12em"}} @label="Search enabled">
<Hds::SuperSelect::Multiple
@onChange={{this.noop}}
@options={{@model.OPTIONS}}
Expand Down

0 comments on commit 2519bdb

Please sign in to comment.