diff --git a/pages/expandable-section/permutations.page.tsx b/pages/expandable-section/permutations.page.tsx index 7ffc5519f2..e2a50acf23 100644 --- a/pages/expandable-section/permutations.page.tsx +++ b/pages/expandable-section/permutations.page.tsx @@ -5,7 +5,10 @@ import React from 'react'; import Button from '~components/button'; import Container from '~components/container'; import ExpandableSection, { ExpandableSectionProps } from '~components/expandable-section'; +import InternalExpandableSection from '~components/expandable-section/internal'; import Header from '~components/header'; +import SpaceBetween from '~components/space-between'; +import StatusIndicator from '~components/status-indicator'; import Table from '~components/table'; import createPermutations from '../utils/permutations'; @@ -158,7 +161,24 @@ const permutations = createPermutations([ children: ['Sample content'], }, ]); -/* eslint-enable react/jsx-key */ + +const endIconPermutations = createPermutations([ + { + variant: ['default', 'footer', 'navigation', 'container'], + headerText: [ + 'Short Header', + 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', + ], + headerActions: [ + undefined, + + + + Information + , + ], + }, +]); export default function ExpandableSectionPermutations() { return ( @@ -166,6 +186,14 @@ export default function ExpandableSectionPermutations() {

Expandable Section permutations

} /> + ( + + Variant {permutation.variant} section content + + )} + /> ); diff --git a/pages/expandable-section/test.page.tsx b/pages/expandable-section/test.page.tsx index 4ad5b58040..fb7b90c481 100644 --- a/pages/expandable-section/test.page.tsx +++ b/pages/expandable-section/test.page.tsx @@ -2,7 +2,9 @@ // SPDX-License-Identifier: Apache-2.0 import React from 'react'; +import Button from '~components/button'; import ExpandableSection from '~components/expandable-section'; +import InternalExpandableSection from '~components/expandable-section/internal'; export default function ExpandableSectionTestPage() { return ( @@ -15,6 +17,28 @@ export default function ExpandableSectionTestPage() { After you enable your S3 bucket for static website hosting, web browsers can access your content through the Amazon S3 website endpoint for the bucket. + +
+ Action} + > + Content of the end-position expandable section used for keyboard toggle and focus tests. + +
+ +
+ Action} + > + Content of the wrapping-header end-position expandable section used for the below-caret click test. + +
); } diff --git a/pages/side-navigation/collapsed.page.tsx b/pages/side-navigation/collapsed.page.tsx index eb01e7eb6f..7d35fe90d0 100644 --- a/pages/side-navigation/collapsed.page.tsx +++ b/pages/side-navigation/collapsed.page.tsx @@ -14,14 +14,45 @@ const items: SideNavigationProps.Item[] = [ { type: 'link', text: 'Settings', href: '#/settings', icon: }, { type: 'section', - text: 'Resources', + text: 'Section', items: [ { type: 'link', text: 'Announcements', href: '#/announcements', icon: }, { type: 'link', text: 'Team', href: '#/team', icon: }, { type: 'link', text: 'Networking', href: '#/networking', icon: }, ], }, + { type: 'divider' }, + { + type: 'link-group', + text: 'Link group', + href: '#/', + items: [ + { type: 'link', text: 'Announcements', href: '#/announcements3', icon: }, + { type: 'link', text: 'Team', href: '#/team3', icon: }, + { type: 'link', text: 'Networking', href: '#/networking3', icon: }, + ], + }, + { + type: 'expandable-link-group', + text: 'Expandable link group', + href: '#/projects', + icon: , + items: [ + { type: 'link', text: 'Project 1', href: '#/projects/1' }, + { type: 'link', text: 'Project 2', href: '#/projects/2' }, + { type: 'link', text: 'Project 3', href: '#/projects/3' }, + ], + }, { type: 'link', text: 'Documentation', href: '#/docs', external: true }, + { + type: 'section-group', + title: 'Section group', + items: [ + { type: 'link', text: 'Announcements', href: '#/announcements2', icon: }, + { type: 'link', text: 'Team', href: '#/team2', icon: }, + { type: 'link', text: 'Networking', href: '#/networking2', icon: }, + ], + }, ]; const COLLAPSED_WIDTH = 52; @@ -49,7 +80,7 @@ export default function SideNavigationCollapsedPage() { } return ( -
+
{/* Nav panel */}