Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

15757 create a controlled accordion stories #15827

Conversation

preetibansalui
Copy link
Contributor

Closes #15757

Added controlled story in Accordion

New

  • Added controlled story

Testing / Reviewing

  1. Click on the Controlled story in Accordion.
  2. Click on 'Expand All' button and it should open all Panels
  3. Click on 'Collapse All' button and it should close all Panels

@preetibansalui preetibansalui requested a review from a team as a code owner February 27, 2024 10:24
Copy link

netlify bot commented Feb 27, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit d3659f3
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/65e9c698bbf512000838b525
😎 Deploy Preview https://deploy-preview-15827--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@alina-jacob

This comment was marked as off-topic.

Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

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

This looks solid, just a couple things I think could change

packages/styles/scss/components/accordion/_accordion.scss Outdated Show resolved Hide resolved
e2e/components/Accordion/Accordion-test.avt.e2e.js Outdated Show resolved Hide resolved
e2e/components/Accordion/Accordion-test.avt.e2e.js Outdated Show resolved Hide resolved
Copy link
Contributor

@guidari guidari left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

Copy link
Contributor

@Kritvi-bhatia17 Kritvi-bhatia17 left a comment

Choose a reason for hiding this comment

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

As discussed in the call, I have some concerns regarding the solutioning:

  1. Placing two primary CTAs/buttons next to each other is not recommended.
  2. This could potentially create confusion for users, as the CTAs seem like a part of the component/design rather than just props.

Possible solutions:

  1. We could create a tab called 'Examples' under 'Accordion' where we can place the 'Controlled' tab.
  2. We could explore alternative placements or methods for presenting the CTAs.

For further steps, I can connect with the team to determine the best course of action.

Copy link
Member

@alisonjoseph alisonjoseph left a comment

Choose a reason for hiding this comment

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

This LGTM from a dev perspective.

@Kritvi-bhatia17 could we just add two small ghost buttons for the demo? The topic of adding Example or Demo stories has come up several times in dev meetings, but I think its a bigger discussion vs. creating it for a one-off component.

Screenshot 2024-03-04 at 2 26 20 PM

Copy link
Contributor

@Kritvi-bhatia17 Kritvi-bhatia17 left a comment

Choose a reason for hiding this comment

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

Hey @alisonjoseph , just wanted to let you know that @alina-jacob brought this up during our design critique call today. We decided to stick with the current design for now since it's already in progress. But we can definitely tackle this later on down the road!

Looks good @preetibansalui 🔥

@tw15egan tw15egan added this pull request to the merge queue Mar 7, 2024
Merged via the queue into carbon-design-system:main with commit 0474bce Mar 7, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an controlled Accordion stories
9 participants