Skip to content

Commit

Permalink
fix(vaLogoAltText): initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvisraymond-uchicago committed Oct 24, 2024
1 parent d93668b commit 1f9e334
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/localconf.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,13 @@ function buildConfig(opts) {
const cedarWrapperURL = `${hostname}cedar`;
const gen3ZendeskURL = 'https://<SUBDOMAIN_NAME>.zendesk.com';

// Disallow gitops.json configurability of Gen3 Data Commons and CTDS logo alt text.
// This allows for one point-of-change in the case of future rebranding.
// Map href or explicit descriptor to alt text.
const portalLogoAltText = () => {
if (components?.logoAltText) return `${components.logoAltText} - home`;
return `${components.appName} - home`;
};

const commonsWideAltText = {
portalLogo: `${components.appName} - home`, // Standardized, accessible logo alt text for all commons
portalLogo: portalLogoAltText(),
'https://ctds.uchicago.edu/gen3': 'Gen3 Data Commons - information and resources',
'https://ctds.uchicago.edu/': 'Center for Translational Data Science at the University of Chicago - information and resources',

Expand Down

0 comments on commit 1f9e334

Please sign in to comment.