Skip to content

Commit

Permalink
Merge pull request #2522 from hashicorp/hds-3996/dropdown-size
Browse files Browse the repository at this point in the history
`Dropdown`: fixed height for ToggleButton small variant
  • Loading branch information
shleewhite authored Oct 31, 2024
2 parents 70f528b + e331a40 commit 972c0c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-donuts-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hashicorp/design-system-components": patch
---

`Dropdown`: fixed the height of the chevron in `ToggleButton`.
6 changes: 6 additions & 0 deletions packages/components/src/styles/components/dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ $hds-dropdown-toggle-border-radius: $hds-button-border-radius;

.hds-dropdown-toggle-button--size-small {
padding-right: 0.375rem;

// For small variant with chevron, force the icon size to custom (even if the SGV size is `16px`)
.hds-icon {
width: 12px;
height: 12px;
}
}

.hds-dropdown-toggle-button--size-medium {
Expand Down

0 comments on commit 972c0c0

Please sign in to comment.