Skip to content

Commit

Permalink
Merge pull request #1775 from carbon-design-system/compliance-add-com…
Browse files Browse the repository at this point in the history
…monjs

feat(mdx-components): add footer and common js for ibm compliance
  • Loading branch information
alisonjoseph authored Feb 28, 2024
2 parents 99068c7 + ebbee98 commit 24e9185
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions packages/mdx-components/.storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<footer><dds-footer-container key="footer" disable-locale-button="true" size="micro" /></footer>

<script
key="8"
type="module"
src="https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/footer.min.js"
/>

<!-- Tealium/GA Set up -->
<script type="text/javascript">
window._ibmAnalytics = {
settings: {
name: 'CarbonPlatformStorybook',
isSpa: true,
tealiumProfileName: 'ibm-web-app'
},
onLoad: [['ibmStats.pageview', []]]
}
digitalData = {
page: {
pageInfo: {
ibm: {
siteId: 'IBM_' + _ibmAnalytics.settings.name
}
},
category: {
primaryCategory: 'PC100'
}
}
}
</script>
<script
src="//1.www.s81c.com/common/stats/ibm-common.js"
type="text/javascript"
async="async"
></script>

<!-- Style overrides -->
<style>
body {
font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
}

body a[href='/?path=/settings/about'] {
display: none;
}

/* This style is required because of the compliance footer */
#root > div {
height: calc(100vh - 48px);
}

/* This style is required because of the compliance footer in smaller screens */
@media (max-width: 671px) {
nav[class^='css-'] {
height: 281px;
}
}

footer {
position: absolute;
bottom: 0;
width: 100%;
z-index: 99999;
}

.os-content form span {
font-weight: 600;
}

.os-content a button {
color: #161616;
}

button.sidebar-item svg {
color: #161616;
}

a.sidebar-item[data-selected='true'] {
color: #161616;
}

a.sidebar-item[data-selected='true'] svg {
color: #161616;
}

mark[class*='css-'] {
color: #0f62fe;
}
</style>

0 comments on commit 24e9185

Please sign in to comment.