Skip to content

feat: add radio button as an input type#445

Merged
surajshetty3416 merged 2 commits intofrappe:developfrom
mrswastik-robot:input-radio-buttons
Dec 18, 2025
Merged

feat: add radio button as an input type#445
surajshetty3416 merged 2 commits intofrappe:developfrom
mrswastik-robot:input-radio-buttons

Conversation

@mrswastik-robot
Copy link
Contributor

tries to fix #348

This PR adds the radio as an option for the inputs, and introduces Radio-specific properties like RadioGroupName, RadioValue, and InitiallyChecked. I have tried the changes locally and they work flawlessly. Happy to make any requested changes :)

image

Credit goes to @ShreyasTheNewbie for trying it first, so it wasn't much of a work for me!

Copy link
Member

@surajshetty3416 surajshetty3416 left a comment

Choose a reason for hiding this comment

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

@mrswastik-robot Maybe create a new section called "Input Options" and move all related properties under that? Currently, it'll be hard to discover those properties under "Accessibility".

Also, keep label of the property smaller so that it does not take two lines.

@mrswastik-robot
Copy link
Contributor Author

Hi @surajshetty3416, should I create a new file containing all the input-related properties and only display them when an input element is selected?

@codecov
Copy link

codecov bot commented Dec 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.26%. Comparing base (91bf502) to head (3dce6a2).
⚠️ Report is 116 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #445   +/-   ##
========================================
  Coverage    49.26%   49.26%           
========================================
  Files           28       28           
  Lines         2182     2182           
========================================
  Hits          1075     1075           
  Misses        1107     1107           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mrswastik-robot
Copy link
Contributor Author

Hi @surajshetty3416 , I have made the requested changes, this is what it looks like now:

image

@surajshetty3416 surajshetty3416 merged commit 6855043 into frappe:develop Dec 18, 2025
3 checks passed
@github-actions
Copy link

🎉 This PR is included in version 1.22.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Input radio type on editor

2 participants