Skip to content

Commit 59b7955

Browse files
docs(docs): add TDS sunset warning
1 parent 8cd410b commit 59b7955

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

docs/components/overrides/StyleGuide/StyleGuideRenderer.js

+26-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import cx from 'classnames'
55
import Logo from 'rsg-components/Logo'
66
import Markdown from 'rsg-components/Markdown'
77
import { createGlobalStyle } from 'styled-components'
8-
import { colorSecondary} from '@tds/core-colours'
8+
import { colorSecondary } from '@tds/core-colours'
99

1010
import CSSReset from '@tds/core-css-reset'
1111
import FlexGrid from '@tds/core-flex-grid'
@@ -85,9 +85,34 @@ const TdsGrid = ({ children }) => (
8585
</FlexGrid>
8686
)
8787

88+
const TDSSunsetWarning = () => (
89+
<div style={{ display: 'flex', flexDirection: 'row', flexWrap: 'nowrap', padding: '1rem', backgroundColor: 'rgb(255, 248, 230)', marginBottom: '1rem', border: '1px solid rgb(230, 167, 0)', borderRadius: '6px' }}>
90+
<div style={{ marginRight: '1rem', height: '100%' }}>
91+
<svg style={{ display: 'inline-block', verticalAlign: 'middle' }} width="20" height="20">
92+
<path fill="#8C5415" fillRule="evenodd" d="M10.878 1.61l8.315 15.244a1 1 0 0 1-.878 1.48H1.685a1 1 0 0 1-.878-1.48L9.122 1.61a1 1 0 0 1 1.756 0zM10 16.794c.46 0 .833-.402.833-.898 0-.495-.373-.897-.833-.897-.46 0-.833.402-.833.897 0 .496.373.898.833.898zm-.022-2.885c.347 0 .63-.297.64-.67l.179-6.698c.01-.388-.28-.709-.64-.709h-.35c-.361 0-.65.32-.64.708l.171 6.699c.01.373.294.67.64.67z" />
93+
</svg>
94+
</div>
95+
<div>
96+
<p>
97+
The evolution of the TELUS brand continues! The brand new <a href="https://telus.github.io/universal-design-system/">Universal Design System</a> is now available and all teams are encouraged to transition their applications to UDS components in order to better reflect the latest vision of the TELUS brand.
98+
</p>
99+
<p>TDS Core and TDS Community will continue with limited support and restrict new feature requests.</p>
100+
<p>While diving into this documentation, you’ll notice some new updates:</p>
101+
<ul>
102+
<li>We’ll provide direct links to corresponding UDS components from either tds-core / tds-community</li>
103+
<li>We’ll provide notice about deprecated components (that may not be implemented on UDS in the near future)</li>
104+
</ul>
105+
<p style={{ marginBottom: '0' }}>
106+
<a href="/contact.html">Contact us</a> for more information on how to get support. And <a href="https://telusdigital.slack.com/archives/C2WK9TP5F">join our TELUS Slack channel</a> for updates.
107+
</p>
108+
</div>
109+
</div>
110+
)
111+
88112
export function StyleGuideRenderer({ classes, title, homepageUrl, children, toc, hasSidebar }) {
89113
const main = (
90114
<main className={cx(hasSidebar && classes.content)}>
115+
<TDSSunsetWarning />
91116
{children}
92117
<footer className={classes.footer}>
93118
<Markdown text={`Generated with [React Styleguidist](${homepageUrl})`} />

0 commit comments

Comments
 (0)