diff --git a/src/localconf.js b/src/localconf.js index 4233d67ac..b616251ef 100644 --- a/src/localconf.js +++ b/src/localconf.js @@ -496,11 +496,13 @@ function buildConfig(opts) { const cedarWrapperURL = `${hostname}cedar`; const gen3ZendeskURL = 'https://.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',