Skip to content

Commit

Permalink
docs: add link to Eufemia's GitHub repository in menu bar (#3670)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz authored Jun 6, 2024
1 parent 940ddb6 commit cdecbb3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#toggle-sidebar-menu {
display: none;
}
#github-button {
display: inline-flex;
}

/*
God for a mobile menu instead
Expand All @@ -50,6 +53,9 @@
#toggle-sidebar-menu {
display: flex;
}
#github-button {
display: none;
}
}
@include allBelow(small) {
/* make the button round */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
hideSidebarToggleButtonStyle,
} from './StickyMenuBar.module.scss'
import { Link } from '../tags/Anchor'
import GithubLogo from '../../docs/contribute/assets/github-logo.js'

export default function StickyMenuBar({
hideSidebarToggleButton = false,
Expand Down Expand Up @@ -106,6 +107,15 @@ export default function StickyMenuBar({
: 'Show section content menu'
}
/>
<Button
id="github-button"
href="https://github.com/dnbexperience/eufemia/"
size="large"
target="_blank"
icon={GithubLogo}
title="Navigates to Eufemia's GitHub repository"
left="x-small"
/>
<PortalToolsMenu />
</span>
</div>
Expand Down

0 comments on commit cdecbb3

Please sign in to comment.