Skip to content

Commit

Permalink
POC
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamilto committed Feb 13, 2025
1 parent 1c061f5 commit 8ff16de
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/public/components/masthead.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const Masthead = React.memo(({ isMastheadStacked, isNavOpen, onNavToggle
<MastheadBrand>
<MastheadLogo
component="a"
aria-label={window.SERVER_FLAGS.customLogoURL ? undefined : details.productName}
aria-label={details.productName}
data-test="masthead-logo"
{...logoProps}
>
Expand Down
Binary file added frontend/public/imgs/github-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/imgs/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
[[ if .ServerFlags.CustomProductName ]]
<title>[[ .ServerFlags.CustomProductName ]]</title>
<meta name="application-name" content="[[ .ServerFlags.CustomProductName ]]" />
<!-- put this in a separate if statement -->
<link rel="shortcut icon" href="<%= require('./imgs/github.png') %>" />
[[ else ]] [[ if eq .ServerFlags.Branding "okd" ]]
<title>OKD</title>
<meta name="application-name" content="OKD" />
Expand Down Expand Up @@ -66,6 +68,11 @@
}
if (theme === 'dark') {
document.documentElement.classList.add('pf-v6-theme-dark', 'pf-v5-theme-dark'); // legacy pf-theme-dark class needed for PF5 component styling
// put this in a unique if statement
[[ if .ServerFlags.CustomProductName ]]
var link = document.querySelector("link[rel~='icon']");
link.href = '<%= require("./imgs/github-dark.png") %>';
[[ end ]]
}
</script>
</head>
Expand Down

0 comments on commit 8ff16de

Please sign in to comment.