Skip to content

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

Merged
merged 3 commits into from
Jun 9, 2021
Merged

Conversation

palbizu
Copy link
Contributor

@palbizu palbizu commented Jun 9, 2021

Description

Adding the attribute to configure horizontal/vertical options alignment from Radio Group (column default alignment).

Testing

Visual Testing

Row View:
image

Column View:
image

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

Documentation

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

@palbizu palbizu requested a review from a team as a code owner June 9, 2021 15:44
@codecov
Copy link

codecov bot commented Jun 9, 2021

Codecov Report

Merging #918 (255869b) into main (dfd14c1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           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           
Impacted Files Coverage Δ
...ects/components/src/radio/radio-group.component.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dfd14c1...255869b. Read the comment docs.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@palbizu palbizu merged commit 69ce706 into main Jun 9, 2021
@palbizu palbizu deleted the OptionsAlignment branch June 9, 2021 16:18
@github-actions
Copy link

github-actions bot commented Jun 9, 2021

Unit Test Results

    4 files  ±0  257 suites  ±0   15m 23s ⏱️ -22s
926 tests ±0  926 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
932 runs  ±0  932 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 69ce706. ± Comparison against base commit dfd14c1.

@@ -39,6 +40,9 @@ export class RadioGroupComponent implements OnInit {
@Input()
public disabled: boolean | undefined;

@Input()
public optionsDirection: OptionsDirection = OptionsDirection.Column;
Copy link
Contributor

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?

Copy link
Contributor

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.

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.

4 participants