Skip to content

Commit acac13a

Browse files
committed
Update line height for the items under the tool menu
1 parent 2aa055a commit acac13a

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

src/lib/components/tool-selector/ToolMenu.module.scss

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,6 @@
102102
margin-top: 16px;
103103
}
104104

105-
a {
106-
line-height: 22px;
107-
font: inherit;
108-
margin-bottom: -4px;
109-
margin-top: 4px;
110-
}
111-
112105
&:global(.navButton) {
113106
display: inline-flex;
114107
font-weight: 700;
@@ -129,7 +122,7 @@
129122
border-color: #219174;
130123
}
131124

132-
a {
125+
.navItemLabel {
133126
margin-top: 0;
134127
margin-bottom: 0;
135128
}
@@ -159,9 +152,13 @@
159152
.navItemContent {
160153
display: flex;
161154
flex-direction: column;
162-
span {
163-
display: block;
164-
}
155+
}
156+
157+
.navItemLabel {
158+
display: block;
159+
line-height: 22px;
160+
margin-bottom: -4px;
161+
margin-top: 4px;
165162
}
166163

167164
.navItemDescription {

src/lib/components/tool-selector/ToolMenu.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
</div>
5656
<div class={styles.navItemContent}>
5757
{#if !!navItem.label}
58-
<span>{navItem.label}</span>
58+
<span class={styles.navItemLabel}>{navItem.label}</span>
5959
{/if}
6060
{#if navItem.type !== 'cta' && navItem.description}
6161
<span class={styles.navItemDescription}>

0 commit comments

Comments
 (0)