Skip to content

Commit 972c0c0

Browse files
authored
Merge pull request #2522 from hashicorp/hds-3996/dropdown-size
`Dropdown`: fixed height for ToggleButton small variant
2 parents 70f528b + e331a40 commit 972c0c0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changeset/violet-donuts-matter.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hashicorp/design-system-components": patch
3+
---
4+
5+
`Dropdown`: fixed the height of the chevron in `ToggleButton`.

packages/components/src/styles/components/dropdown.scss

+6
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ $hds-dropdown-toggle-border-radius: $hds-button-border-radius;
136136

137137
.hds-dropdown-toggle-button--size-small {
138138
padding-right: 0.375rem;
139+
140+
// For small variant with chevron, force the icon size to custom (even if the SGV size is `16px`)
141+
.hds-icon {
142+
width: 12px;
143+
height: 12px;
144+
}
139145
}
140146

141147
.hds-dropdown-toggle-button--size-medium {

0 commit comments

Comments
 (0)