diff --git a/apps/website/screens/common/themes/advanced-theme.json b/apps/website/screens/common/themes/advanced-theme.json
index 2ec0b6c056..e489c9afaf 100644
--- a/apps/website/screens/common/themes/advanced-theme.json
+++ b/apps/website/screens/common/themes/advanced-theme.json
@@ -2,45 +2,43 @@
"accordion": {
"backgroundColor": "#ffffff",
"hoverBackgroundColor": "#f2eafa",
+ "focusBackgroundColor": "transparent",
+ "activeBackgroundColor": "#f2eafa",
"arrowColor": "#5f249f",
"disabledArrowColor": "#999999",
+ "subLabelFontFamily": "Open Sans, sans-serif",
+ "subLabelFontSize": "0.75rem",
+ "subLabelFontWeight": "400",
+ "subLabelFontStyle": "normal",
+ "subLabelFontColor": "#666666",
+ "disabledSubLabelFontColor": "#999999",
"assistiveTextFontFamily": "Open Sans, sans-serif",
- "assistiveTextFontSize": "1rem",
- "assistiveTextFontWeight": "300",
- "assistiveTextFontStyle": "italic",
- "assistiveTextLetterSpacing": "0.025em",
+ "assistiveTextFontSize": "0.75rem",
+ "assistiveTextFontWeight": "400",
+ "assistiveTextFontStyle": "normal",
"assistiveTextFontColor": "#666666",
"disabledAssistiveTextFontColor": "#999999",
- "assistiveTextMinWidth": "100px",
- "assistiveTextPaddingRight": "1.5rem",
- "assistiveTextPaddingLeft": "0rem",
"titleLabelFontFamily": "Open Sans, sans-serif",
"titleLabelFontSize": "1rem",
"titleLabelFontWeight": "400",
"titleLabelFontStyle": "normal",
- "titleLabelFontColor": "#000000",
+ "titleLabelFontColor": "#333333",
"disabledTitleLabelFontColor": "#999999",
- "titleLabelPaddingTop": "0rem",
- "titleLabelPaddingBottom": "0rem",
- "titleLabelPaddingLeft": "0rem",
- "titleLabelPaddingRight": "1rem",
"focusBorderColor": "#0095ff",
"focusBorderStyle": "solid",
"focusBorderThickness": "2px",
"borderRadius": "4px",
"boxShadowOffsetX": "0px",
- "boxShadowOffsetY": "6px",
- "boxShadowBlur": "10px",
+ "boxShadowOffsetY": "12px",
+ "boxShadowBlur": "12px",
+ "boxShadowSpread": "0px",
"boxShadowColor": "#0000001a",
"iconColor": "#5f249f",
"disabledIconColor": "#999999",
"iconSize": "24px",
- "iconMarginLeft": "0rem",
- "iconMarginRight": "0.75rem",
- "accordionGroupSeparatorBorderColor": "#0000001a",
- "accordionGroupSeparatorBorderThickness": "1px",
- "accordionGroupSeparatorBorderRadius": "0px",
- "accordionGroupSeparatorBorderStyle": "solid"
+ "accordionSeparatorBorderColor": "#e6e6e6",
+ "accordionSeparatorBorderThickness": "1px",
+ "accordionSeparatorBorderStyle": "solid"
},
"alert": {
"overlayColor": "#000000b3",
diff --git a/apps/website/screens/common/themes/opinionated-theme.json b/apps/website/screens/common/themes/opinionated-theme.json
index 050215d6ad..70f544101f 100644
--- a/apps/website/screens/common/themes/opinionated-theme.json
+++ b/apps/website/screens/common/themes/opinionated-theme.json
@@ -1,7 +1,8 @@
{
"accordion": {
"accentColor": "#5f249f",
- "titleFontColor": "#000000",
+ "titleFontColor": "#333333",
+ "subLabelFontColor": "#666666",
"assistiveTextFontColor": "#666666"
},
"button": {
diff --git a/apps/website/screens/components/accordion/AccordionPageLayout.tsx b/apps/website/screens/components/accordion/AccordionPageLayout.tsx
index 1bfd1ce897..33e4d86743 100644
--- a/apps/website/screens/components/accordion/AccordionPageLayout.tsx
+++ b/apps/website/screens/components/accordion/AccordionPageLayout.tsx
@@ -17,9 +17,10 @@ const AccordionPageHeading = ({ children }: { children: ReactNode }) => {
- Accordions are used to group similar content and hide or show it depending on user needs or preferences.
- Accordions give users more granular control over the interface and help digest content in stages, rather
- than all at once.
+ The accordion component is a vertical stack of interactive headers used to group related content into
+ collapsible sections, allowing users to expand or hide content based on their needs or preferences. It
+ enhances the user experience by organizing information into smaller, digestible chunks, helping reduce
+ cognitive load and save screen space.
diff --git a/apps/website/screens/components/accordion/code/AccordionCodePage.tsx b/apps/website/screens/components/accordion/code/AccordionCodePage.tsx
index 38a210a296..c70438f61b 100644
--- a/apps/website/screens/components/accordion/code/AccordionCodePage.tsx
+++ b/apps/website/screens/components/accordion/code/AccordionCodePage.tsx
@@ -3,11 +3,12 @@ import QuickNavContainer from "@/common/QuickNavContainer";
import QuickNavContainerLayout from "@/common/QuickNavContainerLayout";
import DocFooter from "@/common/DocFooter";
import Example from "@/common/example/Example";
-import controlledAccordion from "./examples/controlledAccordion";
-import uncontrolledAccordion from "./examples/uncontrolledAccordion";
+import basicUsage from "./examples/basicUsage";
+import badgeStatusLight from "./examples/badgeStatusLight";
+import controlled from "./examples/controlled";
+import uncontrolled from "./examples/uncontrolled";
import icons from "./examples/icons";
-import controlledAccordionGroup from "./examples/controlledAccordionGroup";
-import uncontrolledAccordionGroup from "./examples/uncontrolledAccordionGroup";
+import accordions from "./examples/accordions";
import TableCode from "@/common/TableCode";
import StatusBadge from "@/common/StatusBadge";
import Code from "@/common/Code";
@@ -27,96 +28,52 @@ const sections = [
+
independent
-
-
- label
-
-
-
- string
+ boolean
-
The panel label.
-
-
-
-
-
defaultIsExpanded
- boolean
+ When true, limits the user to single-open section at a time. When false, multiple sections can be opened
+ simultaneously.
-
Initial state of the panel, only when it is uncontrolled.
false
-
isExpanded
+
defaultIndexActive
- boolean
+ number | number[]
- Represents the state of the panel. When true, the component will be expanded. If undefined, the component
- will be uncontrolled and its value will be managed internally by the component.
+ Initially active accordion, only when it is uncontrolled. If the accordion is not independent, several
+ accordions can be activated by default.
-
- Material Symbol
- {" "}
- name or SVG element as the icon that will be placed next to the panel label. When using Material Symbols,
- replace spaces with underscores. By default they are outlined if you want it to be filled prefix the
- symbol name with "filled_".
+ number | number[]
-
-
-
-
-
assistiveText
- string
+ The index of the active accordion. If undefined, the component will be uncontrolled and the active
+ accordion will be managed internally by the component. If null, the component will be controlled and all
+ accordions will be closed. If the accordion is not independent, several accordions can be activated.
-
Assistive text to be placed on the right side of the panel.
- This function will be called when the user clicks the accordion to expand or collapse the panel. The new
- state of the panel will be passed as a parameter.
+ This function will be called when the user clicks on an accordion. The index of the clicked accordion will
+ be passed as a parameter.
-
-
-
-
-
- children
-
-
-
- React.ReactNode
-
-
The expanded panel of the accordion. This area can be used to render custom content.
-
-
-
margin
@@ -129,24 +86,25 @@ const sections = [
-
-
tabIndex
- number
-
-
- Value of the tabindex attribute.
+
+
+ children
+
- 0
+ {`ReactElement[] | ReactElement`}
+
Contains one or more accordion items.
+
-
),
},
{
- title: "Accordion Group",
- content: Groups two or more accordions to distribute large volumes of information.,
+ title: "DxcAccordion.AccordionItem",
+ content: Accordion item, that composes the accordion component.,
subSections: [
{
title: "Props",
@@ -162,46 +120,90 @@ const sections = [
-
defaultIndexActive
- number
+
+
+ label
+
+
+
+ string
-
Initially active accordion, only when it is uncontrolled.
+
The panel label.
-
-
indexActive
- number
+
+
+ subLabel
+
- The index of the active accordion. If undefined, the component will be uncontrolled and the active
- accordion will be managed internally by the component. If null, the component will be controlled and
- all accordions will be closed.
+ string
- This function will be called when the user clicks on an accordion. The index of the clicked accordion
- will be passed as a parameter.
+
+ Material Symbol
+ {" "}
+ name or SVG element as the icon that will be placed next to the panel label. When using Material
+ Symbols, replace spaces with underscores. By default they are outlined if you want it to be filled
+ prefix the symbol name with "filled_".
-
+
+
assistiveText
+
+ string
+
+
Assistive text to be placed on the right side of the panel.
- Size of the margin to be applied to the component. You can pass an object with 'top', 'bottom', 'left'
- and 'right' properties in order to specify different margin sizes.
+ Value of the tabindex attribute.
+
+
+ 0
-
-
),
},
- {
- title: "DxcAccordionGroup.Accordion",
- content: Single accordion, part of an accordion group.,
- subSections: [
- {
- title: "Props",
- content: (
-
-
-
-
- Material Symbol
- {" "}
- name or SVG element as the icon that will be placed next to the panel label. When using Material
- Symbols, replace spaces with underscores. By default they are outlined if you want it to be filled
- prefix the symbol name with "filled_".
-
-
-
-
-
-
assistiveText
-
- string
-
-
Assistive text to be placed on the right side of the panel.
-
-
-
-
-
disabled
-
- boolean
-
-
If true, the component will be disabled.
-
- false
-
-
-
-
-
-
- children
-
-
-
- React.ReactNode
-
-
The expanded panel of the accordion. This area can be used to render custom content.
-
-
-
-
-
- ),
- },
- ],
- },
],
},
{
title: "Examples",
subSections: [
{
- title: "Controlled Accordion",
- content: ,
+ title: "Basic usage",
+ content: ,
},
{
- title: "Uncontrolled Accordion",
- content: ,
+ title: "Controlled Accordion",
+ content: ,
},
{
- title: "Controlled Accordion Group",
- content: ,
+ title: "Uncontrolled Accordion",
+ content: ,
},
{
- title: "Uncontrolled Accordion Group",
- content: ,
+ title: "Badge and status light",
+ content: ,
},
{
title: "Icons",
content: ,
},
+ {
+ title: "Group of accordions",
+ content: ,
+ },
],
},
];
diff --git a/apps/website/screens/components/accordion/code/examples/accordions.ts b/apps/website/screens/components/accordion/code/examples/accordions.ts
new file mode 100644
index 0000000000..1e63a60206
--- /dev/null
+++ b/apps/website/screens/components/accordion/code/examples/accordions.ts
@@ -0,0 +1,60 @@
+import { DxcAccordion, DxcInset, DxcBadge, DxcStatusLight } from "@dxc-technology/halstack-react";
+import { useState } from "react";
+
+const code = `() => {
+ return (
+
+
+ }}
+ statusLight={}
+ >
+
+ Person information
+
+
+ }}
+ defaultIsExpanded
+ >
+
+ Person creation information
+
+
+ }}
+ statusLight={}
+ defaultIsExpanded
+ >
+
+ Interactions information
+
+
+ }}
+ >
+
+ Deletion information
+
+
+
+
+ );
+}`;
+
+const scope = {
+ DxcAccordion,
+ DxcInset,
+ DxcBadge,
+ DxcStatusLight,
+ useState,
+};
+
+export default { code, scope };
diff --git a/apps/website/screens/components/accordion/code/examples/badgeStatusLight.ts b/apps/website/screens/components/accordion/code/examples/badgeStatusLight.ts
new file mode 100644
index 0000000000..7e0668bd36
--- /dev/null
+++ b/apps/website/screens/components/accordion/code/examples/badgeStatusLight.ts
@@ -0,0 +1,29 @@
+import { DxcInset, DxcAccordion, DxcBadge, DxcStatusLight } from "@dxc-technology/halstack-react";
+
+const code = `() => {
+ return (
+
+
+ }}
+ statusLight={}
+ >
+
+ To edit your profile you need to go to Settings and click on Profile.
+
+
+
+
+ );
+}`;
+
+const scope = {
+ DxcInset,
+ DxcAccordion,
+ DxcBadge,
+ DxcStatusLight,
+};
+
+export default { code, scope };
diff --git a/apps/website/screens/components/accordion/code/examples/basicUsage.ts b/apps/website/screens/components/accordion/code/examples/basicUsage.ts
new file mode 100644
index 0000000000..d0d34468aa
--- /dev/null
+++ b/apps/website/screens/components/accordion/code/examples/basicUsage.ts
@@ -0,0 +1,23 @@
+import { DxcAccordion, DxcInset } from "@dxc-technology/halstack-react";
+
+const code = `() => {
+ return (
+
+
+
+
+ To edit your profile you need to go to Settings and click on Profile.
+
+
+
+
+ );
+}`;
+
+const scope = {
+ DxcAccordion,
+ DxcInset,
+};
+
+export default { code, scope };
diff --git a/apps/website/screens/components/accordion/code/examples/controlled.ts b/apps/website/screens/components/accordion/code/examples/controlled.ts
new file mode 100644
index 0000000000..67fffb686b
--- /dev/null
+++ b/apps/website/screens/components/accordion/code/examples/controlled.ts
@@ -0,0 +1,32 @@
+import { DxcAccordion, DxcInset } from "@dxc-technology/halstack-react";
+import { useState } from "react";
+
+const code = `() => {
+ const [indexAccordion, setIndexAccordion] = useState(0);
+ const onActiveChange = (index) => {
+ setIndexAccordion((currentIndex) => (currentIndex === index ? -1 : index));
+ };
+
+ return (
+
+
+
+
+ To edit your profile you need to go to Settings and click on Profile.
+
+
+
+
+ );
+}`;
+
+const scope = {
+ DxcAccordion,
+ DxcInset,
+ useState,
+};
+
+export default { code, scope };
diff --git a/apps/website/screens/components/accordion/code/examples/controlledAccordion.ts b/apps/website/screens/components/accordion/code/examples/controlledAccordion.ts
deleted file mode 100644
index e1db10e061..0000000000
--- a/apps/website/screens/components/accordion/code/examples/controlledAccordion.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { DxcAccordion, DxcInset } from "@dxc-technology/halstack-react";
-import { useState } from "react";
-
-const code = `() => {
- const [isExpanded, changeIsExpanded] = useState(true);
- const onChange = (newValue) => {
- changeIsExpanded(newValue);
- };
-
- return (
-
-
-
- To edit your profile you need to go to Settings and click on Profile.
-
-
-
- );
-}`;
-
-const scope = {
- DxcAccordion,
- DxcInset,
- useState,
-};
-
-export default { code, scope };
diff --git a/apps/website/screens/components/accordion/code/examples/controlledAccordionGroup.ts b/apps/website/screens/components/accordion/code/examples/controlledAccordionGroup.ts
deleted file mode 100644
index e90adc2482..0000000000
--- a/apps/website/screens/components/accordion/code/examples/controlledAccordionGroup.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { DxcAccordionGroup, DxcInset } from "@dxc-technology/halstack-react";
-import { useState } from "react";
-
-const code = `() => {
- const [indexAccordion, setIndexAccordion] = useState(0);
- const onActiveChange = (index) => {
- setIndexAccordion((currentIndex) => (currentIndex === index ? -1 : index));
- };
-
- return (
-
-
-
-
- To edit your profile you need to go to Settings and click on
- Profile.
-
-
-
-
- To edit your profile you need to go to Settings and click on Log
- out.
-
-
-
-
- );
-}`;
-
-const scope = {
- DxcAccordionGroup,
- DxcInset,
- useState,
-};
-
-export default { code, scope };
diff --git a/apps/website/screens/components/accordion/code/examples/icons.ts b/apps/website/screens/components/accordion/code/examples/icons.ts
index f32135fb97..75a85109df 100644
--- a/apps/website/screens/components/accordion/code/examples/icons.ts
+++ b/apps/website/screens/components/accordion/code/examples/icons.ts
@@ -1,38 +1,18 @@
-import { DxcAccordion, DxcAccordionGroup, DxcFlex, DxcInset } from "@dxc-technology/halstack-react";
+import { DxcAccordion, DxcFlex, DxcInset } from "@dxc-technology/halstack-react";
import { useState } from "react";
const code = `() => {
-
return (
-
-
-
- To edit your profile you need to go to Settings and click on
- Profile.
-
-
-
-
+
+
To edit your profile you need to go to Settings and click on
Profile.
-
-
-
- To edit your profile you need to go to Settings and click on Log
- out.
-
-
-
-
+
+
);
}`;
@@ -40,7 +20,6 @@ const code = `() => {
const scope = {
DxcAccordion,
DxcInset,
- DxcAccordionGroup,
DxcFlex,
useState,
};
diff --git a/apps/website/screens/components/accordion/code/examples/uncontrolled.ts b/apps/website/screens/components/accordion/code/examples/uncontrolled.ts
new file mode 100644
index 0000000000..c9b9fc4928
--- /dev/null
+++ b/apps/website/screens/components/accordion/code/examples/uncontrolled.ts
@@ -0,0 +1,24 @@
+import { DxcAccordion, DxcInset } from "@dxc-technology/halstack-react";
+import { useState } from "react";
+
+const code = `() => {
+ return (
+
+
+
+
+ To edit your profile you need to go to Settings and click on Profile.
+
+
+
+
+ );
+}`;
+
+const scope = {
+ DxcAccordion,
+ DxcInset,
+ useState,
+};
+
+export default { code, scope };
diff --git a/apps/website/screens/components/accordion/code/examples/uncontrolledAccordion.ts b/apps/website/screens/components/accordion/code/examples/uncontrolledAccordion.ts
deleted file mode 100644
index 77ccd09269..0000000000
--- a/apps/website/screens/components/accordion/code/examples/uncontrolledAccordion.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import { DxcAccordion, DxcInset } from "@dxc-technology/halstack-react";
-import { useState } from "react";
-
-const code = `() => {
- return (
-
-
-
- To edit your profile you need to go to Settings and click on Profile.
-
-
-
- );
-}`;
-
-const scope = {
- DxcAccordion,
- DxcInset,
- useState,
-};
-
-export default { code, scope };
diff --git a/apps/website/screens/components/accordion/code/examples/uncontrolledAccordionGroup.ts b/apps/website/screens/components/accordion/code/examples/uncontrolledAccordionGroup.ts
deleted file mode 100644
index 9381beca8b..0000000000
--- a/apps/website/screens/components/accordion/code/examples/uncontrolledAccordionGroup.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { DxcAccordionGroup, DxcInset } from "@dxc-technology/halstack-react";
-import { useState } from "react";
-
-const code = `() => {
- return (
-
-
-
-
- To edit your profile you need to go to Settings and click on
- Profile.
-
-
-
-
- To edit your profile you need to go to Settings and click on Log
- out.
-
-
-
-
- );
-}`;
-
-const scope = {
- DxcAccordionGroup,
- DxcInset,
- useState,
-};
-
-export default { code, scope };
diff --git a/apps/website/screens/components/accordion/specs/AccordionSpecsPage.tsx b/apps/website/screens/components/accordion/specs/AccordionSpecsPage.tsx
index f22d589a28..3430294597 100644
--- a/apps/website/screens/components/accordion/specs/AccordionSpecsPage.tsx
+++ b/apps/website/screens/components/accordion/specs/AccordionSpecsPage.tsx
@@ -40,16 +40,17 @@ const sections = [
Header
- Custom icon (Optional)
+ Left secondary element (Optional)Title
+ Sublabel
- Helper text (Optional)
+ Right secondary element (Optional)
Caret icon (Expand/collapse)
- Expanded panel
+ Content area
>
),
@@ -72,23 +73,41 @@ const sections = [
diff --git a/apps/website/screens/components/accordion/specs/images/accordion_anatomy.png b/apps/website/screens/components/accordion/specs/images/accordion_anatomy.png
index a5ad739b03..62369e4b95 100644
Binary files a/apps/website/screens/components/accordion/specs/images/accordion_anatomy.png and b/apps/website/screens/components/accordion/specs/images/accordion_anatomy.png differ
diff --git a/apps/website/screens/components/accordion/specs/images/accordion_specs.png b/apps/website/screens/components/accordion/specs/images/accordion_specs.png
index 3ae74d805e..ca2d0df214 100644
Binary files a/apps/website/screens/components/accordion/specs/images/accordion_specs.png and b/apps/website/screens/components/accordion/specs/images/accordion_specs.png differ
diff --git a/apps/website/screens/components/accordion/specs/images/accordion_states.png b/apps/website/screens/components/accordion/specs/images/accordion_states.png
index 94e24364e0..6f503ddb48 100644
Binary files a/apps/website/screens/components/accordion/specs/images/accordion_states.png and b/apps/website/screens/components/accordion/specs/images/accordion_states.png differ
diff --git a/apps/website/screens/components/accordion/usage/AccordionUsagePage.tsx b/apps/website/screens/components/accordion/usage/AccordionUsagePage.tsx
index 8b656ddb81..79b4410f13 100644
--- a/apps/website/screens/components/accordion/usage/AccordionUsagePage.tsx
+++ b/apps/website/screens/components/accordion/usage/AccordionUsagePage.tsx
@@ -4,237 +4,378 @@ import QuickNavContainerLayout from "@/common/QuickNavContainerLayout";
import DocFooter from "@/common/DocFooter";
import Figure from "@/common/Figure";
import Image from "@/common/Image";
-import Example from "@/common/example/Example";
-import accordionPlacement from "./images/accordion_placement.png";
-import accordionAlignment from "./images/accordion_alignment.png";
-import accordionTriggers from "./images/accordion_triggers.png";
+import accordionMainParts from "./images/accordion_main_parts.png";
+import accordionElements from "./images/accordion_elements.png";
+import accordionExamples from "./images/accordion_examples.png";
import accordionContent from "./images/accordion_content.png";
-import accordionMultiExpand from "./images/accordion_multi_expand.png";
-import accordionGroup from "./examples/accordionGroup";
-import assistiveText from "./examples/assistiveText";
-import behaviorAndInteraction from "./examples/behaviorAndInteraction";
+import accordionPlacement from "./images/accordion_placement.png";
const sections = [
{
title: "Usage",
content: (
- The accordion component delivers large amounts of content in a small space through progressive disclosure.
+ The accordion component is designed to present large amounts of content in a small space by leveraging
+ progressive disclosure. It helps improve the user experience by breaking down information into manageable
+ sections, allowing users to focus only on what they need.
),
subSections: [
{
- title: "Do's",
- content: (
-
- Displaying and grouping additional information.
-
- To shorten pages and reduce scrolling when content is not crucial to read in full.
-
- Adding granular control over the information on a given page.
-
- ),
- },
- {
- title: "Don'ts",
- content: (
-
-
- When most of the content on the page is needed to answer user questions.
-
-
- To display a list of clickable options, dropdown should be used instead.
-
-
- Displaying critical system information or a primary action to be taken on the page. (for example: alerts,
- confirmation or cancellation buttons).
-
-
- ),
- },
- ],
- },
- {
- title: "Placement and alignment",
- subSections: [
- {
- title: "Placement",
+ title: "Main parts",
content: (
<>
-
- Accordions can be placed with main page content or placed inside of a container such as a side panel or
- tile.
-
-
-
+ Each accordion section consists of two main parts:
+
+
+
+
+ Header: Serves as the trigger for expanding or collapsing the section. It acts as a
+ summary of the content, allowing users to decide if they want to interact with it.{" "}
+
+
+ Content area: The expanded section where detailed information or functionality resides.{" "}
+
+
>
),
+ subSections: [
+ {
+ title: "Header layout, primary and secondary elements",
+ content: (
+ <>
+
+ The accordion header is divided into two sections: left and right, each of which can contain different
+ UI elements. These elements are categorised as primary or secondary, based on their importance and
+ role within the accordion's functionality.
+
+
+ >
+ ),
+ subSections: [
+ {
+ title: "Primary Elements",
+ content: (
+ <>
+
+ The primary elements are mandatory and provide the basic functionality of the
+ accordion. These ensure the component is functional and intuitive for users:
+
+
+
+ Title: A concise and descriptive label that summarises the content of the
+ accordion section. It helps users understand what type of information they can expect to find
+ inside.
+
+
+ Chevron Icon: A visual indicator of the accordion’s current state (expanded or
+ collapsed). It provides an affordance for interaction and ensures users can toggle the accordion
+ intuitively.
+
+
+
+ Without these elements, the accordion cannot effectively communicate its purpose or provide a
+ clear interaction model.
+
+ >
+ ),
+ },
+ {
+ title: "Secondary Elements",
+ content: (
+ <>
+
+ The secondary elements are optional and provide additional context or enhance the
+ user experience. While not essential for the accordion's functionality, they add useful details or
+ visual hierarchy.
+
+
+
+ Left secondary elements:
+
+
+ Icon: Adds visual context or aids recognition by representing the content
+ type or purpose of the section.
+
+
+ Badge: Displays supplemental information, such as a notification count or
+ status, to give users a quick overview of the section.
+
+
+
+
+ Right secondary elements:
+
+
+ Helper text: Provides additional context, such as brief instructions or a
+ summary of the content within the section.
+
+
+ Status light: Displays a visual indicator of the section’s status (e.g.,
+ completed, in progress, or error).
+
+
+ Badge: Similar to the left-side badge, but placed on the right for better
+ alignment in specific layouts.
+
+
+
+
+
+
+
+ >
+ ),
+ },
+ ],
+ },
+ {
+ title: "Content area",
+ content: (
+ <>
+
+ The content area can contain other components, images, tables, and every custom feature that can be
+ supported inside the element container.
+
+
+
+ Nesting is allowed and icons can be used as a complement to the header label.
+
+ >
+ ),
+ },
+ ],
},
{
- title: "Alignment",
+ title: "Placement and alignment",
+ subSections: [
+ {
+ title: "Placement",
+ content: (
+ <>
+
+ Accordions can be placed with main page content or placed inside of a container such as a side panel
+ or tile.
+
+
+
+
+ >
+ ),
+ },
+ {
+ title: "Alignment",
+ content: (
+
+ By default the chevron icon is placed on the end side of the header. This allows for the title on the
+ start side to align with other type elements in the layout.
+
+ ),
+ },
+ ],
+ },
+ {
+ title: "Behavior and interaction",
content: (
<>
- By default the chevron icon is placed on the end side of the header. This allows for the title on the
- start side to align with other type elements in the layout.
+ The accordion component has two main states: collapsed and expanded. The chevron icon at the end of the
+ accordion indicates which state the accordion is in. Accordions begin by default in the collapsed state
+ with all content panels closed. Starting in a collapsed state gives the user a high level overview of the
+ available information.
-
-
- Left. Place chevron icon at the end of the accordion header.
-
-
- Right. Don’t place caret icon on the left.
-
- >
- }
- >
-
-
- >
- ),
- },
- ],
- },
- {
- title: "Behavior and interaction",
- content: (
- <>
-
-
- The accordion component has two main states: collapsed and expanded. The chevron icon at the end of the
- accordion indicates which state the accordion is in. Accordions begin by default in the collapsed state with
- all content panels closed. Starting in a collapsed state gives the user a high level overview of the available
- information.
-
-
-
- Trigger collapsed and expanded states when clicking on either the header or icon.
-
-
- Use icons and animation to easily reflect collapsed and expanded states.
-
-
- Use a chevron icon to indicate the expand/collapse behavior.
-
+
- When the panel expands, the chevron icon rotates 180 degrees counterclockwise.
+ Trigger collapsed and expanded states when clicking on either the header or icon.
- When the panel collapses, the chevron icon rotates 180 degrees clockwise.
+ Use icons and animation to easily reflect collapsed and expanded states.
+
+
+ Use a chevron icon to indicate the expand/collapse behavior.
+
+
+
+ When the panel expands, the chevron icon rotates 180 degrees counterclockwise.
+
+
+ When the panel collapses, the chevron icon rotates 180 degrees clockwise.
+
+
+
-
-
-
-
- Left. Trigger collapsed and expanded states when clicking on either the header or icon.
-
+ >
+ ),
+ subSections: [
+ {
+ title: "Allowing multiple sections open vs single-open behavior",
+ content: (
- Right. Leave the header without caret or use a button to trigger the expand/collapse
- action.
+ The accordion component can be configured to allow either multiple sections to be open
+ simultaneously or limit the user to a single-open section at a time. Each approach has
+ specific use cases, but it’s important to prioritise user needs and content hierarchy when deciding
+ which behavior to implement.
- >
- }
- >
-
-
- >
- ),
- subSections: [
+ ),
+ subSections: [
+ {
+ title: "Allow multiple sections open",
+ content: (
+ <>
+
+ This approach gives users full control over the visibility of content, allowing them to open or
+ collapse multiple sections at the same time. It’s particularly useful when:
+
+
+
+ Users need to compare or reference information across different sections simultaneously.
+
+
+ The content in each section is independent and doesn’t require strict linear navigation.
+
+
+ There is enough vertical space to accommodate multiple expanded sections without overwhelming
+ the layout.
+
+
+ >
+ ),
+ },
+ {
+ title: "Single-open behavior",
+ content: (
+ <>
+
+ Some implementations restrict the accordion to allow only one section to be open
+ at a time. When a user expands a new section, the previously expanded section collapses
+ automatically. This pattern is suitable when:
+
+
+
+ The content is closely related or mutually exclusive, making it logical to view only one section
+ at a time.
+
+
+ Vertical space is limited, and having multiple sections open could cause usability or layout
+ issues.
+
+
+ A simplified and more guided user experience is desired, such as in wizards or step-by-step
+ processes.
+
+
+ >
+ ),
+ },
+ ],
+ },
+ ],
+ },
{
- title: "Mobile",
+ title: "Best practices",
content: (
<>
-
- In small devices, extremely long pages are detrimental to the user experience. Collapsing information
- minimizes excessive scrolling and gives an overview of the structure and content available on the page.
-
- In mobile use 100% of the available screen width.
+
+ One element per side: Each side of the header (left and{" "}
+ right) should only include one secondary element to maintain a clean
+ and organised visual hierarchy.
+
+
+ No duplicates: Avoid including multiple instances of the same type of element in the
+ header (e.g., two badges or two status lights), as this can create visual clutter and confuse users.
+
+
+ Semantic colors: If both a badge and a status light{" "}
+ are included, avoid using semantic colors (e.g., red, green) for the badge to prevent it from competing
+ visually with the status light.
+
+
+ Growth priority: Mandatory and descriptive elements, such as the title, are prioritised
+ over optional elements to ensure that essential information is always visible and accessible.
+
>
),
+ subSections: [
+ {
+ title: "Mobile",
+ content: (
+ <>
+
+ In small devices, extremely long pages are detrimental to the user experience. Collapsing information
+ minimises excessive scrolling and gives an overview of the structure and content available on the
+ page.
+
+
+ In mobile use 100% of the available screen width.
+
+ >
+ ),
+ },
+ {
+ title: "Do's",
+ content: (
+ <>
+ Use an accordion when:
+
+
+ Displaying and grouping additional information that is related or supplemental to
+ the primary content.
+
+
+ Shortening pages and reducing scrolling, especially for optional or non-critical
+ content.
+
+
+ Providing users with granular control over the visibility of information, helping
+ them interact with the page in a way that meets their specific needs.
+
+
+ Organising FAQs or similar repeated structures, where content can be logically
+ divided into expandable sections.
+
+
+ Enhancing content hierarchy by nesting detailed or secondary content under a more
+ general overview.
+
+
+ >
+ ),
+ },
+ {
+ title: "Don'ts",
+ content: (
+ <>
+ Don’t use an accordion if:
+
+
+ The majority of the content on the page is crucial for the user to see upfront, as
+ hiding it may increase friction or confusion.
+
+
+ You need to display a list of selectable options (e.g., navigation menus or
+ filters)—a dropdown or other list pattern is more appropriate.
+
+
+ Critical system information or actions (like alerts, confirmations, or primary
+ buttons) need to be visible—these should remain prominent and accessible without requiring user
+ interaction.
+
+
+ The interaction of expanding and collapsing creates{" "}
+ unnecessary complexity or extra clicks for the user.
+
+
+ >
+ ),
+ },
+ ],
},
],
},
- {
- title: "Accordion group",
- content: (
- <>
-
- Accordion headers are stacked vertically and different hierarchy levels are allowed.
-
-
-
-
- The expandable section of an accordion group can contain different types of plain information or clickable
- components.
-
-
-
-
-
-
-
-
- When one accordion panel is expanded, the rest of the group should be collapsed.
-
- >
- ),
- },
- {
- title: "Content",
- content: (
- <>
-
- The accordion component can contain other components, images, tables, and every custom feature that can be
- supported inside the element container.
-
-
-
- Left. Nesting is allowed. Use in parent accordion Open Sans Semibold.
-
-
- Right. Icons can be used as a complement to the header label.
-
- >
- }
- >
-
-
- >
- ),
- },
- {
- title: "Assistive text",
- content: (
- <>
- Assistive text can be shown at the end of the accordion header when needed.
-
- Icons and images can not be used.
-
- Only add a assistive text when there is plenty space in the accordion header, in mobile devices is not
- displayed.
-
-
- Try always to use a descriptive header so is no necessity to add extra information.
-
-
- Assistive text content will be truncated 48px before reaching the accordion title. Title display has
- priority when space is limited.
-
-
-
- >
- ),
- },
];
const AccordionUsagePage = () => {
diff --git a/apps/website/screens/components/accordion/usage/examples/accordionGroup.ts b/apps/website/screens/components/accordion/usage/examples/accordionGroup.ts
deleted file mode 100644
index c30dfb35b5..0000000000
--- a/apps/website/screens/components/accordion/usage/examples/accordionGroup.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-import { DxcAccordionGroup, DxcInset, DxcFlex, DxcHeading } from "@dxc-technology/halstack-react";
-import { useState } from "react";
-
-const code = `() => {
- const [indexAccordion, setIndexAccordion] = useState(0);
- const onActiveChange = (index) => {
- setIndexAccordion((currentIndex) => (currentIndex === index ? -1 : index));
- };
-
- return (
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Suspendisse malesuada lacus ex, sit amet blandit leo lobortis
- eget.
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
- malesuada lacus ex, sit amet blandit leo lobortis eget.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
- malesuada lacus ex, sit amet blandit leo lobortis eget.
-
-
-
-
- );
-}`;
-
-const scope = {
- DxcAccordionGroup,
- DxcInset,
- DxcFlex,
- DxcHeading,
- useState,
-};
-
-export default { code, scope };
diff --git a/apps/website/screens/components/accordion/usage/examples/assistiveText.ts b/apps/website/screens/components/accordion/usage/examples/assistiveText.ts
deleted file mode 100644
index 66a2506c1b..0000000000
--- a/apps/website/screens/components/accordion/usage/examples/assistiveText.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import { DxcAccordion, DxcInset } from "@dxc-technology/halstack-react";
-import { useState } from "react";
-
-const code = `() => {
- const [isExpanded, changeIsExpanded] = useState(false);
- const onChange = (newValue) => {
- changeIsExpanded(newValue);
- };
-
- return (
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
- malesuada lacus ex, sit amet blandit leo lobortis eget.
-
-
-
- );
-}`;
-
-const scope = {
- DxcAccordion,
- DxcInset,
- useState,
-};
-
-export default { code, scope };
diff --git a/apps/website/screens/components/accordion/usage/examples/behaviorAndInteraction.ts b/apps/website/screens/components/accordion/usage/examples/behaviorAndInteraction.ts
deleted file mode 100644
index c83d703c04..0000000000
--- a/apps/website/screens/components/accordion/usage/examples/behaviorAndInteraction.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-import { DxcAccordion, DxcInset, DxcFlex, DxcHeading } from "@dxc-technology/halstack-react";
-import { useState } from "react";
-
-const code = `() => {
- const [isExpandedCollapsed, changeIsExpandedCollapsed] = useState(false);
- const onChangeCollapsed = (newValue) => {
- changeIsExpandedCollapsed(newValue);
- };
- const [isExpanded, changeIsExpanded] = useState(true);
- const onChangeExpanded = (newValue) => {
- changeIsExpanded(newValue);
- };
-
- return (
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
- malesuada lacus ex, sit amet blandit leo lobortis eget.
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Suspendisse malesuada lacus ex, sit amet blandit leo lobortis
- eget.
-
-
-
-
-
-
- );
-}`;
-
-const scope = {
- DxcAccordion,
- DxcInset,
- DxcFlex,
- DxcHeading,
- useState,
-};
-
-export default { code, scope };
diff --git a/apps/website/screens/components/accordion/usage/images/accordion_alignment.png b/apps/website/screens/components/accordion/usage/images/accordion_alignment.png
deleted file mode 100644
index 27c0faee5b..0000000000
Binary files a/apps/website/screens/components/accordion/usage/images/accordion_alignment.png and /dev/null differ
diff --git a/apps/website/screens/components/accordion/usage/images/accordion_content.png b/apps/website/screens/components/accordion/usage/images/accordion_content.png
index f4c7a14619..bf02e664bd 100644
Binary files a/apps/website/screens/components/accordion/usage/images/accordion_content.png and b/apps/website/screens/components/accordion/usage/images/accordion_content.png differ
diff --git a/apps/website/screens/components/accordion/usage/images/accordion_elements.png b/apps/website/screens/components/accordion/usage/images/accordion_elements.png
new file mode 100644
index 0000000000..b508c9908b
Binary files /dev/null and b/apps/website/screens/components/accordion/usage/images/accordion_elements.png differ
diff --git a/apps/website/screens/components/accordion/usage/images/accordion_examples.png b/apps/website/screens/components/accordion/usage/images/accordion_examples.png
new file mode 100644
index 0000000000..d4c3afd9e2
Binary files /dev/null and b/apps/website/screens/components/accordion/usage/images/accordion_examples.png differ
diff --git a/apps/website/screens/components/accordion/usage/images/accordion_main_parts.png b/apps/website/screens/components/accordion/usage/images/accordion_main_parts.png
new file mode 100644
index 0000000000..4aee73941a
Binary files /dev/null and b/apps/website/screens/components/accordion/usage/images/accordion_main_parts.png differ
diff --git a/apps/website/screens/components/accordion/usage/images/accordion_multi_expand.png b/apps/website/screens/components/accordion/usage/images/accordion_multi_expand.png
deleted file mode 100644
index 58d3ce9468..0000000000
Binary files a/apps/website/screens/components/accordion/usage/images/accordion_multi_expand.png and /dev/null differ
diff --git a/apps/website/screens/components/accordion/usage/images/accordion_placement.png b/apps/website/screens/components/accordion/usage/images/accordion_placement.png
index a117e80c47..d55759d6ec 100644
Binary files a/apps/website/screens/components/accordion/usage/images/accordion_placement.png and b/apps/website/screens/components/accordion/usage/images/accordion_placement.png differ
diff --git a/apps/website/screens/components/accordion/usage/images/accordion_triggers.png b/apps/website/screens/components/accordion/usage/images/accordion_triggers.png
deleted file mode 100644
index c3c8636eb7..0000000000
Binary files a/apps/website/screens/components/accordion/usage/images/accordion_triggers.png and /dev/null differ
diff --git a/apps/website/screens/principles/themes/ThemesPage.tsx b/apps/website/screens/principles/themes/ThemesPage.tsx
index ddeba37ef5..65e69dae41 100644
--- a/apps/website/screens/principles/themes/ThemesPage.tsx
+++ b/apps/website/screens/principles/themes/ThemesPage.tsx
@@ -148,6 +148,13 @@ const sections = [
titleLabelFontColor
+
-
-
- );
- const results = await axe(container);
- expect(results).toHaveNoViolations();
- });
-});
diff --git a/packages/lib/src/accordion-group/AccordionGroup.stories.tsx b/packages/lib/src/accordion-group/AccordionGroup.stories.tsx
deleted file mode 100644
index e6206b0d58..0000000000
--- a/packages/lib/src/accordion-group/AccordionGroup.stories.tsx
+++ /dev/null
@@ -1,258 +0,0 @@
-import DxcAccordionGroup from "./AccordionGroup";
-import DxcInset from "../inset/Inset";
-import Title from "../../.storybook/components/Title";
-import ExampleContainer from "../../.storybook/components/ExampleContainer";
-import { Meta, StoryObj } from "@storybook/react";
-
-export default {
- title: "Accordion Group",
- component: DxcAccordionGroup,
-} as Meta;
-
-const AccordionGroup = () => (
- <>
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing 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.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing 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.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing 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.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing 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.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing 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.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing 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.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing 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.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing 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.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing 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.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing 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.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
- >
-);
-
-type Story = StoryObj;
-
-export const Chromatic: Story = {
- render: AccordionGroup,
-};
diff --git a/packages/lib/src/accordion-group/AccordionGroup.test.tsx b/packages/lib/src/accordion-group/AccordionGroup.test.tsx
deleted file mode 100644
index 6d4b87ecf3..0000000000
--- a/packages/lib/src/accordion-group/AccordionGroup.test.tsx
+++ /dev/null
@@ -1,95 +0,0 @@
-import { render, fireEvent } from "@testing-library/react";
-import DxcAccordionGroup from "./AccordionGroup";
-
-describe("Accordion component tests", () => {
- test("Uncontrolled accordion group calls correct function on click", () => {
- const onActiveChange = jest.fn();
- const { getByText, getAllByRole } = render(
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit
- leo lobortis eget.
-