Skip to content

Commit

Permalink
change-className-and-add-css-to-show-versions-on-mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasFlamy committed Feb 4, 2025
1 parent 58bf58b commit 5d85a2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/components/version-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function VersionSwitcher(): JSX.Element {
return (
versions.length > 0 && (
<DropdownNavbarItem
className="navbar__item"
className="version-switcher-34ab39"
label={label}
mobile={windowSize === 'mobile'}
items={versions.map(({ label, url }) => ({
Expand Down
5 changes: 5 additions & 0 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ div[class^='announcementBar_'] {
font-weight: 500;
}

/* workaround for version switcher PR 15894 */
div[class*='navbar__items'] > li:has(a[class*='version-switcher-34ab39']) {
display: none;
}

code {
font-weight: 600;
}

0 comments on commit 5d85a2c

Please sign in to comment.