+
+
+
diff --git a/packages/styles/stories/Components/side-navigation/side-navigation.stories.js b/packages/styles/stories/Components/side-navigation/side-navigation.stories.js
new file mode 100644
index 0000000000..e3a6567eaf
--- /dev/null
+++ b/packages/styles/stories/Components/side-navigation/side-navigation.stories.js
@@ -0,0 +1,78 @@
+
+import collapsedExampleHtml from "./collapsed.example.html?raw";
+import expandedExampleHtml from "./expanded.example.html?raw";
+import floatingExampleHtml from "./floating.example.html?raw";
+import '../../../src/side-nav.scss';
+import '../../../src/navigation-list.scss';
+import '../../../src/button.scss';
+import '../../../src/icon.scss';
+import '../../../src/_nested-list.scss';
+import '../../../src/popover.scss';
+export default {
+ title: 'Components/Side Navigation',
+ parameters: {
+ description: `The Side Navigation is an additional option to add a navigation to an application. Same as the vertical navigation it offers the user easy access to multiple pages per space. Side Navigation is triggered by the Menu Icon in Shellbar and can be hidden, collapsed or expanded.
+
+## Anatomy
+The Side Navigation consists of the following elements:
+
+
**.fd-side-nav**: navigation container. **.is-collapsed** class is added for collapsed state.
+
**.fd-side-nav\\_\\_container** with modifier classes **.fd-side-nav\\_\\_container--top** for the main navigation and **.fd-side-nav\\_\\_container--bottom** for the footer navigation.
+
**.fd-side-nav\\_\\_separator** separator between the main and footer area.
+
+
+
+The List structure is based on **Navigation List**
+
+
+ **.fd-navigation-list** with modifier classes **.level-1** and **.level-2**
+
diff --git a/packages/styles/stories/Deprecated/Components/side-navigation/side-navigation.stories.js b/packages/styles/stories/Deprecated/Components/side-navigation/side-navigation.stories.js
deleted file mode 100644
index 340af2c48c..0000000000
--- a/packages/styles/stories/Deprecated/Components/side-navigation/side-navigation.stories.js
+++ /dev/null
@@ -1,143 +0,0 @@
-import nestedListPopoverExampleHtml from "./nested-list-popover.example.html?raw";
-import nestedListWithoutLinksExampleHtml from "./nested-list-without-links.example.html?raw";
-import nestedListWithGroupHeadersExampleHtml from "./nested-list-with-group-headers.example.html?raw";
-import nestedListWithIconsOnlyInFirstLevelExampleHtml from "./nested-list-with-icons-only-in-first-level.example.html?raw";
-import nestedListWithoutIconsExampleHtml from "./nested-list-without-icons.example.html?raw";
-import condensedStateCozyExampleHtml from "./condensed-state-cozy.example.html?raw";
-import complexCozySideNavExampleHtml from "./complex-cozy-side-nav.example.html?raw";
-import cozyGroupingExampleHtml from "./cozy-grouping.example.html?raw";
-import cozyIconsExampleHtml from "./cozy-icons.example.html?raw";
-import cozyExampleHtml from "./cozy.example.html?raw";
-import '../../../../src/side-nav.scss';
-import '../../../../src/button.scss';
-import '../../../../src/icon.scss';
-import '../../../../src/_nested-list.scss';
-import '../../../../src/popover.scss';
-export default {
- title: 'Deprecated/Components/Side Navigation',
- parameters: {
- description: `
-## DEPRECATED
-
-This component is deprecated in favor of the vertical navigation component.
-The side navigation area can be used to display navigation structures with up to two levels and contains links that change the content area.
-The side navigation consists of two container sections: the **main navigation section** (top-aligned) with links used to navigate within the user’s current work context,
-and the **utility section** (bottom-aligned) that contains links to additional information. Both of these sections use a nested list to display navigation items.
-
-##Usage
-**Use the side navigation if:**
-
-- You need to display global navigation structures of up to two levels.
-- Your scenarios are in the tooling or administration space.
-- If you want the entries to change as though they are dynamic content.
-
-
-**Do not use the side navigation if:**
-
-- Your scenarios are not in the tooling or administration space.
-- You want the entries to open a new browser window.
-
-##States
-Side navigation can be viewed in three different states:
-
-- **Expanded:** everything is shown; icons and/or text.
-- **Condensed:** only icons are shown; text-only condensed state is not supported.
-- **Off-canvas:** side navigation is completely off-screen, and can be triggered via the menu icon in the shellbar.
-
-**Note:** It is recommend to use only two states per device.
-
- `,
- tags: ['f3', 'a11y', 'theme']
- }
-};
-export const Cozy = () => cozyExampleHtml;
-Cozy.storyName = 'Default';
-Cozy.parameters = {
- docs: {
- description: {
- story: `
-The default side navigation is displayed in cozy mode with one navigation level. Because there is only one level, all further navigation is shown in the content area. The \`fd-nested-list--text-only\` modifier class should be added to the lists in both the main and utility sections.
- `
- }
- }
-};
-export const CozyIcons = () => cozyIconsExampleHtml;
-CozyIcons.storyName = 'Icons';
-CozyIcons.parameters = {
- docs: {
- description: {
- story: `
-Side navigation can be displayed with icons. In the expanded state, entries can consist of only text or an icon with text. The use or non-use of icons must be consistent for all links on one level. Do not combine entries with and without icons on the same level. To display icons in list items, add the \`fd-nested-list__icon\` class within the list items.
- `
- }
- }
-};
-export const CozyGrouping = () => cozyGroupingExampleHtml;
-CozyGrouping.storyName = 'Group';
-CozyGrouping.parameters = {
- docs: {
- description: {
- story: `
-Side navigation can be displayed with group headers that organize the entries, which is ideal for when there is more than one level of hierarchy. When they are grouped, the entries on the first level are just headers and don't trigger navigation themselves.
-
It's recommended to use up to two levels of navigation, however; for more levels of navigation, use the content area. When expanded, the \`is-expanded\` class should also be extended to the content element. To trigger another level, use the \`fd-nested-list__button\` element.
- `
- }
- }
-};
-export const ComplexCozySideNav = () => complexCozySideNavExampleHtml;
-ComplexCozySideNav.storyName = 'Complex';
-ComplexCozySideNav.parameters = {
- docs: {
- description: {
- story: `
-Side navigation can display several different features such as icons, group headers, and two levels of navigation.
- `
- }
- }
-};
-export const CondensedStateCozy = () => condensedStateCozyExampleHtml;
-CondensedStateCozy.storyName = 'Condensed';
-CondensedStateCozy.parameters = {
- docs: {
- description: {
- story: `
-Side navigation can be displayed in a condensed state, showing only icons that represent the navigation entries. When the user selects an entry from the navigation, a **Popover** is displayed. The default size for the popover body is often longer than the text length. However, the length can be adjusted to match the text length by adding the \`fd-popover__body--dropdown-fill\` class to the \`fd-popover__body\` element.
-
To display a condensed side navigation, add the \`fd-side-nav--condensed\` modifier class to the main element.
- `
- }
- }
-};
-export const NestedListWithoutIcons = () => nestedListWithoutIconsExampleHtml;
-NestedListWithoutIcons.parameters = {
- docs: {
- disable: true
- }
-};
-export const NestedListWithIconsOnlyInFirstLevel = () => nestedListWithIconsOnlyInFirstLevelExampleHtml;
-NestedListWithIconsOnlyInFirstLevel.parameters = {
- docs: {
- disable: true
- }
-};
-export const NestedListWithGroupHeaders = () => nestedListWithGroupHeadersExampleHtml;
-NestedListWithGroupHeaders.parameters = {
- docs: {
- disable: true
- }
-};
-export const NestedListWithoutLinks = () => nestedListWithoutLinksExampleHtml;
-NestedListWithoutLinks.parameters = {
- docs: {
- disable: true
- }
-};
-export const NestedListPopover = () => nestedListPopoverExampleHtml;
-NestedListPopover.parameters = {
- docs: {
- description: {
- story: `
-Nested list can be displayed inside popover.
- `
- }
- }
-};
\ No newline at end of file
diff --git a/packages/styles/tests/__snapshots__/styles.test.ts.snap b/packages/styles/tests/__snapshots__/styles.test.ts.snap
index a2755eef86..37d6f31bef 100644
--- a/packages/styles/tests/__snapshots__/styles.test.ts.snap
+++ b/packages/styles/tests/__snapshots__/styles.test.ts.snap
@@ -42362,207 +42362,649 @@ exports[`Check stories > Components/Shellbar > Story Responsiveness > Should mat
"
`;
-exports[`Check stories > Components/Skeleton > Story Circle > Should match snapshot 1`] = `
-"
-
-
-"
-`;
-
-exports[`Check stories > Components/Skeleton > Story ComplexExamples > Should match snapshot 1`] = `
-"
-
-
-"
-`;
-
-exports[`Check stories > Components/Skeleton > Story Lines > Should match snapshot 1`] = `
-"