-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/cwc-storybook-7-vite' into chore/skeleton-sb-v7
- Loading branch information
Showing
7 changed files
with
408 additions
and
307 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
75 changes: 0 additions & 75 deletions
75
packages/carbon-web-components/src/components/skip-to-content/skip-to-content-story.ts
This file was deleted.
Oops, something went wrong.
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
82 changes: 82 additions & 0 deletions
82
packages/carbon-web-components/src/components/skip-to-content/skip-to-content.stories.ts
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/** | ||
* @license | ||
* | ||
* Copyright IBM Corp. 2020, 2024 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import { html } from 'lit'; | ||
import './skip-to-content'; | ||
import styles from './skip-to-content-story.scss?lit'; | ||
import storyDocs from './skip-to-content.mdx'; | ||
import { prefix } from '../../globals/settings'; | ||
|
||
export const Default = { | ||
render: () => html` | ||
<style> | ||
${styles} | ||
</style> | ||
<div class="${prefix}--content ${prefix}--grid"> | ||
<div class="${prefix}--row"> | ||
<div class="${prefix}--col-lg-13"> | ||
<h2>Purpose and function</h2> | ||
<p> | ||
The shell is perhaps the most crucial piece of any UI built with | ||
Carbon. It contains the shared navigation framework for the entire | ||
design system and ties the products in IBM’s portfolio together in a | ||
cohesive and elegant way. The shell is the home of the topmost | ||
navigation, where users can quickly and dependably gain their | ||
bearings and move between pages. | ||
<br /> | ||
<br /> | ||
The shell was designed with maximum flexibility built in, to serve | ||
the needs of a broad range of products and users. Adopting the shell | ||
ensures compliance with IBM design standards, simplifies development | ||
efforts, and provides great user experiences. All IBM products built | ||
with Carbon are required to use the shell’s header. | ||
<br /> | ||
<br /> | ||
To better understand the purpose and function of the UI shell, | ||
consider the “shell” of MacOS, which contains the Apple menu, | ||
top-level navigation, and universal, OS-level controls at the top of | ||
the screen, as well as a universal dock along the bottom or side of | ||
the screen. The Carbon UI shell is roughly analogous in function to | ||
these parts of the Mac UI. For example, the app switcher portion of | ||
the shell can be compared to the dock in MacOS. | ||
</p> | ||
<h2>Header responsive behavior</h2> | ||
<p> | ||
As a header scales down to fit smaller screen sizes, headers with | ||
persistent side nav menus should have the side nav collapse into | ||
“hamburger” menu. See the example to better understand responsive | ||
behavior of the header. | ||
</p> | ||
<h2>Secondary navigation</h2> | ||
<p> | ||
The side-nav contains secondary navigation and fits below the | ||
header. It can be configured to be either fixed-width or flexible, | ||
with only one level of nested items allowed. Both links and category | ||
lists can be used in the side-nav and may be mixed together. There | ||
are several configurations of the side-nav, but only one | ||
configuration should be used per product section. If tabs are needed | ||
on a page when using a side-nav, then the tabs are secondary in | ||
hierarchy to the side-nav. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
`, | ||
}; | ||
|
||
const meta = { | ||
title: 'Components/Skip To Content', | ||
parameters: { | ||
docs: { | ||
page: storyDocs, | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; |
Oops, something went wrong.