Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/rude-rice-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@hashicorp/design-system-components": patch
---

`Dropdown` - Updated Radio and Checkbox list items font weight to match other
list items.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,19 @@
<Hds::Icon @name={{@icon}} />
</span>
{{/if}}
<span class="hds-dropdown-list-item__text-content">{{yield}}</span>
<Hds::Text::Body
@tag="span"
@size="200"
@weight="medium"
class="hds-dropdown-list-item__text-content"
>{{yield}}</Hds::Text::Body>
{{#if @count}}
<span class="hds-dropdown-list-item__count hds-typography-body-100 hds-font-weight-medium">{{@count}}</span>
<Hds::Text::Body
@tag="span"
@size="100"
@weight="medium"
class="hds-dropdown-list-item__count"
>{{@count}}</Hds::Text::Body>
{{/if}}
</label>
</li>
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@
<Hds::Icon @name={{@icon}} />
</span>
{{/if}}
<Hds::Text::Body @tag="span" @size="200" @weight="medium" class="hds-dropdown-list-item__interactive-text">
{{yield}}
</Hds::Text::Body>
<Hds::Text::Body
@tag="span"
@size="200"
@weight="medium"
class="hds-dropdown-list-item__interactive-text"
>{{yield}}</Hds::Text::Body>
{{#if @count}}
<Hds::Text::Body
class="hds-dropdown-list-item__count"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@
<Hds::Icon @name={{@icon}} />
</div>
{{/if}}
<span class="hds-dropdown-list-item__text-content">{{yield}}</span>

<Hds::Text::Body
@tag="span"
@size="200"
@weight="medium"
class="hds-dropdown-list-item__text-content"
>{{yield}}</Hds::Text::Body>
{{#if @count}}
<Hds::Text::Body
class="hds-dropdown-list-item__count"
@tag="span"
@size="100"
@weight="medium"
class="hds-dropdown-list-item__count"
>{{@count}}</Hds::Text::Body>
{{/if}}
</label>
Expand Down
6 changes: 4 additions & 2 deletions showcase/app/templates/components/dropdown.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@
<SFI.Label>With
<code>@href</code>
<code>&lt;a&gt;</code></SFI.Label>
<code>&lt;a&gt;</code>
</SFI.Label>
<div class="hds-dropdown__content">
<ul class="hds-dropdown__list">
<Hds::Dropdown::ListItem::Interactive @href="/">
Expand All @@ -536,7 +537,8 @@
<code>&lt;LinkTo&gt;</code>
<code>&lt;a&gt;</code></SFI.Label>
<code>&lt;a&gt;</code>
</SFI.Label>
<div class="hds-dropdown__content">
<ul class="hds-dropdown__list">
<Hds::Dropdown::ListItem::Interactive @route="components.dropdown">
Expand Down