Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[terra-button] Allow programmatic toggle of selectable button #3955

Merged
merged 4 commits into from
Oct 31, 2023

Conversation

sugan2416
Copy link
Collaborator

Summary

What was changed:

  • Added custom prop isSelected to allow selectable button to be toggle-able
  • Updated example to show programmatic toggle.

Why it was changed:

Custom prop isSelected was added to allow consumer to programmatically toggle selectable button.

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-XXXX


Thank you for contributing to Terra.
@cerner/terra

Selected
image

@github-actions github-actions bot temporarily deployed to preview-pr-3955 October 31, 2023 13:21 Destroyed
@sugan2416 sugan2416 merged commit bc5cf44 into main Oct 31, 2023
22 checks passed
@sugan2416 sugan2416 deleted the isselected-fix branch October 31, 2023 14:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants