Skip to content

Commit e241a2d

Browse files
committed
dropdown icon padding tweaks
1 parent c30be3e commit e241a2d

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

src/components/Dropdown/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const Dropdown = ({
119119
aria-expanded={isOpen}
120120
tabIndex={0}
121121
>
122-
<div className={styles.icon}>
122+
<div className={styles.iconTop}>
123123
<Icon kind={iconKind} />
124124
</div>
125125
<span>

src/components/Dropdown/styles.module.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
}
5151

5252
.icon,
53-
.chevron {
53+
.chevron,
54+
.iconTop {
5455
position: absolute;
5556
pointer-events: none;
5657
}
@@ -69,6 +70,16 @@
6970
}
7071
}
7172

73+
.iconTop {
74+
left: 10px;
75+
top: 8px;
76+
77+
@media (min-width: $breakpoint-laptop) {
78+
left: 11px;
79+
top: 10px;
80+
}
81+
}
82+
7283
.chevron {
7384
right: 10px;
7485
top: 12px;

0 commit comments

Comments
 (0)