Skip to content

Commit c4531fc

Browse files
fix(docs): show version selection dropdown on mobile (#15894)
change-className-and-add-css-to-show-versions-on-mobile
1 parent 252d3f5 commit c4531fc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/src/components/version-switcher.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function VersionSwitcher(): JSX.Element {
4444
return (
4545
versions.length > 0 && (
4646
<DropdownNavbarItem
47-
className="navbar__item"
47+
className="version-switcher-34ab39"
4848
label={label}
4949
mobile={windowSize === 'mobile'}
5050
items={versions.map(({ label, url }) => ({

docs/src/css/custom.css

+5
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ div[class^='announcementBar_'] {
7575
font-weight: 500;
7676
}
7777

78+
/* workaround for version switcher PR 15894 */
79+
div[class*='navbar__items'] > li:has(a[class*='version-switcher-34ab39']) {
80+
display: none;
81+
}
82+
7883
code {
7984
font-weight: 600;
8085
}

0 commit comments

Comments
 (0)