Skip to content

Commit

Permalink
Add LTS notification - v10 storybook (#14860)
Browse files Browse the repository at this point in the history
* feat: added LTS warning

* fix: removed watchman files

* fix: changed sentence and added lts link

* chore: changed sentence

* fix: fixed style

* fix: fixed typo

* fix: changed style

* fix: fixed import
  • Loading branch information
guidari authored Oct 19, 2023
1 parent 440ade5 commit 83a6bbb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions packages/react/.storybook/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,38 @@ function Container({ story, id }) {
};
}, []);

// Does not include LTS message in UIShell elements to avoid overlaying
const url = window.location.href.includes('ui-shell');

return (
<React.StrictMode>
{!url && (
<div
style={{
backgroundColor: '#0043CE',
width: 'auto',
padding: '1rem',
margin: '-1rem -1rem 0px -1rem',
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
gap: '2rem',
}}>
<p
style={{ color: 'white', fontWeight: 'bold', fontSize: '.875rem' }}>
[email protected] is in maintenance mode, support is
scheduled to end on September 30, 2024.
<span style={{ fontWeight: '400' }}> Start using v11 now!</span>
</p>
<a
style={{ textDecoration: 'none', color: 'white' }}
href="https://github.com/carbon-design-system/carbon/blob/main/docs/release-schedule.md"
target="_blank">
Release schedule
</a>
</div>
)}

<div
className={id.toLowerCase()}
data-floating-menu-container
Expand Down

0 comments on commit 83a6bbb

Please sign in to comment.