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

feat: add a helper text to radio buttons options #2191

Merged
merged 2 commits into from
Jul 25, 2023

Conversation

sirineJ
Copy link
Contributor

@sirineJ sirineJ commented Jul 21, 2023

Addresses #2190.

Purpose

Display optional helper text beneath a radio input's label

Definition of done

  • Development completed
  • Reviewers assigned
  • Unit and integration tests
  • Meets minimum browser support
  • Meets accessibility requirements

@sirineJ sirineJ requested a review from a team as a code owner July 21, 2023 07:56
@sirineJ sirineJ requested review from connor-baer and removed request for a team July 21, 2023 07:56
@changeset-bot
Copy link

changeset-bot bot commented Jul 21, 2023

🦋 Changeset detected

Latest commit: 61fcdf2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@sumup/circuit-ui Minor
@sumup/eslint-plugin-circuit-ui Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jul 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
oss-circuit-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2023 11:10am

Copy link
Member

@connor-baer connor-baer left a comment

Choose a reason for hiding this comment

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

Thank you for suggesting and implementing this improvement, @sirineJ! 🙌

I've left several suggestions to align the implementation with similar components in the design system. Let me know if you'd like to make the changes yourself or if you'd like me to continue from here.

packages/circuit-ui/components/RadioButton/RadioButton.tsx Outdated Show resolved Hide resolved
packages/circuit-ui/package.json Outdated Show resolved Hide resolved
packages/circuit-ui/components/RadioButton/RadioButton.tsx Outdated Show resolved Hide resolved
packages/circuit-ui/components/RadioButton/RadioButton.tsx Outdated Show resolved Hide resolved
packages/circuit-ui/components/RadioButton/RadioButton.tsx Outdated Show resolved Hide resolved
packages/circuit-ui/components/RadioButton/RadioButton.tsx Outdated Show resolved Hide resolved
packages/circuit-ui/components/RadioButton/RadioButton.tsx Outdated Show resolved Hide resolved
packages/circuit-ui/components/RadioButton/RadioButton.tsx Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 24, 2023

Codecov Report

Merging #2191 (61fcdf2) into main (070d553) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2191      +/-   ##
==========================================
+ Coverage   92.09%   92.10%   +0.01%     
==========================================
  Files         171      171              
  Lines        3607     3612       +5     
  Branches     1270     1275       +5     
==========================================
+ Hits         3322     3327       +5     
  Misses        264      264              
  Partials       21       21              
Files Changed Coverage Δ
.../circuit-ui/components/RadioButton/RadioButton.tsx 93.54% <100.00%> (+1.24%) ⬆️

Copy link
Member

@connor-baer connor-baer left a comment

Choose a reason for hiding this comment

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

Thanks for accepting my suggestions. This is looking great! 👏

Could you please add a changeset to summarize the change for the changelog?

packages/circuit-ui/components/RadioButton/RadioButton.tsx Outdated Show resolved Hide resolved
@sirineJ sirineJ force-pushed the feat/add-helper-text-to-radio-buttons branch from 8bf456a to b638575 Compare July 25, 2023 10:25
@connor-baer connor-baer enabled auto-merge (squash) July 25, 2023 11:09
@connor-baer connor-baer merged commit 7ba9679 into main Jul 25, 2023
10 checks passed
@connor-baer connor-baer deleted the feat/add-helper-text-to-radio-buttons branch July 25, 2023 11:56
@connor-baer connor-baer mentioned this pull request Jul 25, 2023
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.

2 participants