Skip to content

added a variation for accordian styles - #582

Merged
troychaplin merged 3 commits into
developfrom
feature/card-style-accordian-variation
Nov 30, 2026
Merged

troychaplin merged 3 commits into
developfrom
feature/card-style-accordian-variation

Conversation

@m-vojjala

Copy link
Copy Markdown
Contributor

PR Checklist & Notes

What type of PR is this? (check all applicable)

  • New component
  • New feature
  • Refactor
  • Bug fix
  • Optimization / Build Tools
  • Documentation Update

Is this a breaking change?

If yes, please note which project will be impacted.

  • Yes
  • No

Have you made an entry in the Changelog?

If not, please make an entry or your PR will be declined. Add new entries under the "Unreleased" section of the changelog.

  • Yes
  • No

Have you made changes to dependencies?

If you've made changes to dependencies please note them here, adding if they've been added, removed or updated, including packages version where applicable.

  • Added
  • Updated
  • Removed
  • Combo of any of the above
  • No

QA Instructions, Screenshots, Recordings

Run npm run storybook and open Components/Description.

  • Card variation: open MultipleAccordionsCard. Collapsed rows should look like RDS cards. Clicking a row should turn it white with a red left accent, a divider under the heading, and a red minus icon. Check that Enter and Space toggle rows.
  • Default variation: open MultipleAccordions and the Examples story. Rows should look unchanged.
  • Loader: DescriptionLoader.Accordion with styleType="card" should show card-shaped placeholders.

UI accessibility concerns?

If your PR includes UI changes, please replace this line with details on how
accessibility is impacted and tested. If there are no accessibility concerns delete this section.

@troychaplin troychaplin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small suggestion to use an array, but not necessary. That's something we can setup in the new RDS for improved future proofing.

I would love to see some form of transition / animation to make the open and close smooth. That could be applied to both variations of the component.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would this look like if we created an array of style options? Then we would only need <Icon> once, etc.

@troychaplin
troychaplin merged commit 904814b into develop Nov 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants