Skip to content

feat: add radioPosition and icon props to RadioCard (MPD-164)#801

Merged
nastyastavitskaya merged 3 commits into
mainfrom
feat/radiocard-icon-radio-position-MPD-164
May 18, 2026
Merged

feat: add radioPosition and icon props to RadioCard (MPD-164)#801
nastyastavitskaya merged 3 commits into
mainfrom
feat/radiocard-icon-radio-position-MPD-164

Conversation

@nastyastavitskaya
Copy link
Copy Markdown
Collaborator

Adds native support for placing the radio indicator on the trailing edge of a RadioCard alongside an optional leading icon/avatar, removing the need for ant-card-body CSS overrides and !important margin hacks.

Summary

  • {provide a thorough description of the changes}

Testing Plan

  • Was this tested locally? If not, explain why.
  • {explain how this has been tested, and what, if any, additional testing should be done}

PR conventions:

  • Target branch: main
  • PR title: semantic prefix — feat:, fix:, or chore: (no scopes)
  • Branch prefix: matching — feat/, fix/, or chore/

Adds native support for placing the radio indicator on the trailing edge
of a RadioCard alongside an optional leading icon/avatar, removing the
need for ant-card-body CSS overrides and !important margin hacks.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Apr 23, 2026

PR Summary

Low Risk
Low risk: changes are isolated to RadioCard rendering/layout and Storybook/docs updates, with no data, auth, or side-effectful logic. Main risk is minor visual regressions in existing RadioCards layouts due to the new radioPosition spacing rules.

Overview
Adds optional icon rendering per option and a new radioPosition prop (start/end) to RadioCards so the radio indicator can be placed on the trailing edge with correct spacing.

Updates Storybook to expose radioPosition, adds a new “With avatar and radio on the end” story, and extends the MDX docs with an example section for the new layout.

Reviewed by Cursor Bugbot for commit c60da54. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2026-05-18 21:05 UTC

astavitskaya and others added 2 commits May 4, 2026 13:41
AntD Avatar already defaults to 32px which matches the Figma spec; no
need for a magic number.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@nastyastavitskaya nastyastavitskaya merged commit 2789685 into main May 18, 2026
10 checks passed
@nastyastavitskaya nastyastavitskaya deleted the feat/radiocard-icon-radio-position-MPD-164 branch May 18, 2026 21:05
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.

1 participant