Followup to ce007e0 - Unify dropdown styles

Provide better compatibility with gadgets that create dropdowns
like Twinkle by explicitly setting the font-weight and font-size
on `.vector-menu-heading`.

This is needed because in legacy Vector, menu headings
were <H3>'s, which have bold text and a larger font size.

Bug: T312157
Change-Id: Ic414cef4c7145740812e590f431294bc85a405b4
This commit is contained in:
Jan Drewniak 2022-08-02 16:57:02 -04:00
parent feab2431f6
commit 4aa5602c52
1 changed files with 4 additions and 0 deletions

View File

@ -56,5 +56,9 @@
// NOTE: Was 40px instead of 41, but changed to avoid visual regressions.
max-height: unit( 41 / @font-size-tabs / @font-size-browser, em );
box-sizing: border-box;
// For better compatibility with gadgets (like Twinkle) that append
// <H3> elements as dropdown headings (which was the convention in legacy Vector).
font-size: inherit;
font-weight: normal;
}
}