Skip to content

feat: Carbon carousel implementation#972

Open
davidmenendez wants to merge 6 commits intocarbon-design-system:mainfrom
davidmenendez:issue-644
Open

feat: Carbon carousel implementation#972
davidmenendez wants to merge 6 commits intocarbon-design-system:mainfrom
davidmenendez:issue-644

Conversation

@davidmenendez
Copy link
Contributor

Closes #643

Adds a new carousel component to ai-chat components that uses the carbon carousel

Changelog

New

  • cds-aichat-carousel

still a work in progress. just wanted to get some eyes on it before moving forward.

@davidmenendez davidmenendez requested a review from a team as a code owner February 20, 2026 22:11
@netlify
Copy link

netlify bot commented Feb 20, 2026

Deploy Preview for ai-chat-components-react ready!

Name Link
🔨 Latest commit 7dfdfde
🔍 Latest deploy log https://app.netlify.com/projects/ai-chat-components-react/deploys/69a212543553e500089ee856
😎 Deploy Preview https://deploy-preview-972--ai-chat-components-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 project configuration.

@netlify
Copy link

netlify bot commented Feb 20, 2026

Deploy Preview for carbon-ai-chat-components ready!

Name Link
🔨 Latest commit 7dfdfde
🔍 Latest deploy log https://app.netlify.com/projects/carbon-ai-chat-components/deploys/69a21254d48b970008f38211
😎 Deploy Preview https://deploy-preview-972--carbon-ai-chat-components.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 project configuration.

@netlify
Copy link

netlify bot commented Feb 20, 2026

Deploy Preview for carbon-ai-chat-demo ready!

Name Link
🔨 Latest commit 7dfdfde
🔍 Latest deploy log https://app.netlify.com/projects/carbon-ai-chat-demo/deploys/69a21254ed6eb700082fa662
😎 Deploy Preview https://deploy-preview-972--carbon-ai-chat-demo.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 project configuration.

};

export default {
title: "Components/Carousel",
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets add it to Preview/Carousel instead for now

$blockClass: #{$prefix}-carousel;

.#{$blockClass} {
&__controls {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe throw on the label-02 type style here

Copy link
Contributor

@ethanwinters ethanwinters left a comment

Choose a reason for hiding this comment

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

Just a couple of notes

cards,
(card) => html`
<cds-aichat-card>
<div slot="body">${card}</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

can we just give the content a 1rem body or something

Copy link
Contributor

Choose a reason for hiding this comment

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

actually, if you set is-flush to false (or something like that) the card will add the padding automatically


# Carousel

It's very good
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets add a real version of this paragraph. I'm guessing you are doing all the "react" version. stuff in a second PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but it's pretty good placeholder 😂

InitCarousel,
Config,
CarouselResponse,
} from "@carbon/utilities";
Copy link
Contributor

Choose a reason for hiding this comment

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

Do the carbon utilities deal with a11y? Like marking the carousel items out of view either hidden or inert?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'm not sure about this. i'll take a look 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

currently it doesn't look like there's anything being done in the current implementation regarding accessibility. things like aria-hidden and aria-live are not being handled directly in the carousel. i can follow up with core to see if this is on their radar and open an issue to address this if it isn't already 👍

@davidmenendez
Copy link
Contributor Author

@ethanwinters confirmed that the accessibility functionality is missing and now there's an issue in core to address it. i'm happy to commit it myself to expedite things 👍

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.

Extract carousel component to ai-chat-components + fix keyboard support

2 participants