-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LTS notification - v10 storybook (#14860)
* 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
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|