Skip to content

Commit d708896

Browse files
authored
fix: Use semantic heading inside top navigation menu dropdown title (#539)
1 parent 83c1c9b commit d708896

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/button-dropdown/internal.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,17 @@ const InternalButtonDropdown = React.forwardRef(
150150
{hasHeader && (
151151
<div className={styles.header} id={headerId}>
152152
{title && (
153-
<InternalBox fontSize="heading-s" fontWeight="bold">
154-
<span className={styles.title}>{title}</span>
155-
</InternalBox>
153+
<div className={styles.title}>
154+
<InternalBox
155+
fontSize="heading-s"
156+
fontWeight="bold"
157+
color="inherit"
158+
tagOverride="h3"
159+
margin={{ vertical: 'n', horizontal: 'n' }}
160+
>
161+
{title}
162+
</InternalBox>
163+
</div>
156164
)}
157165
{description && (
158166
<InternalBox fontSize="body-s">

0 commit comments

Comments
 (0)