Skip to content

fix: add accessible labels to icon-only carousel navigation buttons - #517

Merged
ashley-cui merged 1 commit into
containers:mainfrom
Adii-45:fix/icon-button-accessibility-labels
Jul 29, 2026
Merged

fix: add accessible labels to icon-only carousel navigation buttons#517
ashley-cui merged 1 commit into
containers:mainfrom
Adii-45:fix/icon-button-accessibility-labels

Conversation

@Adii-45

@Adii-45 Adii-45 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR improves the accessibility of the carousel navigation controls by adding descriptive aria-label attributes to icon-only navigation buttons.

Without an accessible name, these controls may not provide meaningful information to users of assistive technologies such as screen readers.

Changes

Added descriptive aria-label attributes to the navigation buttons in:

  • FeaturesCarousel
  • ThankYouSection
  • TestimonialSection

The labels describe the action performed by each control (for example, "Previous feature" and "Next testimonial") rather than the icon itself, making the controls more understandable for screen reader users.

Why

Icon-only buttons should have an accessible name so that assistive technologies can accurately communicate their purpose.

This change improves accessibility while preserving the existing UI, styling, animations, and functionality.

Testing

  • Built successfully using yarn build
  • Verified that there are no visual changes
  • Verified that existing functionality remains unchanged

@Adii-45
Adii-45 force-pushed the fix/icon-button-accessibility-labels branch from 21f5b56 to 7e43c92 Compare July 25, 2026 04:31
@Adii-45

Adii-45 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

Hey @TomSweeneyRedHat @ashley-cui!

This PR is ready for review. I'd really appreciate any feedback or review whenever you have the chance. Thanks!

}`}>
<div className="space-between container flex">
<button onClick={() => setActiveTabIndex(activeTabIndex > 0 ? activeTabIndex - 1 : tabData.length - 1)}>
<button

@TomSweeneyRedHat TomSweeneyRedHat Jul 27, 2026

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.

I think these buttons should have a type="button" statement in their declaration

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review! I've addressed the feedback by adding type="button" to the relevant buttons and included the change in the latest commit.. I'd appreciate another look whenever you have a chance.. Thanks!

Signed-off-by: Aditya Kumar Nayak <adi.nayak45@gmail.com>
@Adii-45
Adii-45 force-pushed the fix/icon-button-accessibility-labels branch from 7e43c92 to 833916a Compare July 27, 2026 20:20
@ashley-cui

Copy link
Copy Markdown
Member

LGTM.

Just FYI: your PR description syntax suggests it was written by AI. Note that our LLM Policy specifically prohibits this. AI assisted code is allowed, but any communication, including comments, emails, issues, and PR descriptions needs to be written by a person. Please keep your issues concise and human-written.

@Adii-45

Adii-45 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for pointing that out @ashley-cui!
Yeah you're right - I used an LLM to help draft the issue and PR description.. My apologies for that! For communication and review discussions, I've been writing those myself.. I'll make sure future issues and PR descriptions are written by me and I keep them concise and human-written. Thanks for the clarification!

@ashley-cui

Copy link
Copy Markdown
Member

LGTM, thanks

@ashley-cui
ashley-cui merged commit d443d1d into containers:main Jul 29, 2026
3 checks 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.

3 participants