-
Notifications
You must be signed in to change notification settings - Fork 11
feat: adding options alignment in Radio Group #918
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
Codecov Report
@@ Coverage Diff @@
## main #918 +/- ##
=======================================
Coverage 85.34% 85.34%
=======================================
Files 803 803
Lines 16508 16509 +1
Branches 2073 2073
=======================================
+ Hits 14089 14090 +1
Misses 2387 2387
Partials 32 32
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@@ -39,6 +40,9 @@ export class RadioGroupComponent implements OnInit { | |||
@Input() | |||
public disabled: boolean | undefined; | |||
|
|||
@Input() | |||
public optionsDirection: OptionsDirection = OptionsDirection.Column; |
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.
this is an input within the radiogroup component. so it can use a simpler name. perhaps just orientation
or direction
?
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.
not a bad update to make (I'd opt for orientation, and update the enum too to something like RadioGroupOrientation), worth doing before this gets consumed anywhere.
Description
Adding the attribute to configure horizontal/vertical options alignment from Radio Group (column default alignment).
Testing
Visual Testing
Row View:

Column View:

Checklist:
Documentation
Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.