-
Notifications
You must be signed in to change notification settings - Fork 0
IBX-10611: RadioButton Field #34
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a new RadioButton field component for the Ibexa design system by creating a radio button input component and its corresponding field wrapper. The implementation follows the established pattern used for other choice inputs like checkboxes.
- Creates a new
RadioButton
input component with required value property - Adds a
RadioButtonField
form control component with label support - Refactors existing choice input components to use a shared base template for consistency
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
RadioButton.php | New radio button input component with value property and type method |
RadioButtonField.php | New form control wrapper that extends RadioButton with labeling capabilities |
LabelledChoiceInputTrait.php | New trait providing common labeling functionality for choice input fields |
AbstractChoiceInput.php | Enhanced base class with name, size, inputClass properties and abstract getType method |
ThreeStateCheckbox.php, Checkbox.php | Updated to implement getType method and add ExposeInTemplate import |
Template files | Refactored to use shared base templates and consistent component structure |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
||
#[AsTwigComponent('ibexa:inputs:radio_button')] | ||
final class RadioButton extends AbstractChoiceInput | ||
class RadioButton extends AbstractChoiceInput |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The RadioButton class should be declared as final
to maintain consistency with other input components like Checkbox and ThreeStateCheckbox.
class RadioButton extends AbstractChoiceInput | |
final class RadioButton extends AbstractChoiceInput |
Copilot uses AI. Check for mistakes.
3469206
to
c1ead5a
Compare
c1ead5a
to
0a304d5
Compare
0a304d5
to
e8f361e
Compare
Related PRs:
Description:
direct iframe src:
For QA:
Documentation: