Skip to content
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

Give our RadioButton a retouch #3791

Merged
merged 2 commits into from Apr 16, 2023

Conversation

ivarnakken
Copy link
Member

Description

It now shares the same transition time and "bounce" as the
CheckBox, which makes them resemble each other far more.

Its label now aligns itself better as well.

Result

Before

Screen.Recording.2023-04-15.at.00.14.08.mov

After

Screen.Recording.2023-04-15.at.00.10.55.mov
Screen.Recording.2023-04-15.at.00.11.38.mov

Testing

  • I have thoroughly tested my changes.

Tested radio buttons in and outside of forms.

It now shares the same transition time and "bounce" as the
CheckBox, which makes them resemble each other far more.

Its label now aligns itself better as well.
No more custom labels.
@ivarnakken ivarnakken added enhancement Pull requests that make enhancements, instead of just purely new features review-needed Pull requests that need review labels Apr 14, 2023
@ivarnakken ivarnakken requested a review from a team April 14, 2023 22:15
@ivarnakken ivarnakken self-assigned this Apr 14, 2023
@linear
Copy link

linear bot commented Apr 14, 2023

ABA-135 Improve RadioButton component

Since the Checkbox component now looks flawless, the radio buttons look awful …

@@ -1,90 +1,95 @@
.box {
Copy link
Member Author

Choose a reason for hiding this comment

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

The entire file is rewritten, so there's no need to compare changes.

Copy link
Contributor

@ollfkaih ollfkaih left a comment

Choose a reason for hiding this comment

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

Looks much more like the checkboxes, I like it :))
Cleaner code also in Joblisting, which is always nice

Copy link
Member

@LudvigHz LudvigHz left a comment

Choose a reason for hiding this comment

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

Awesome!

label="Frist"
checked={order.deadline}
onChange={() => {
props.history.push({
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice if you could replace these with replace as well 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

Out of scope here. Write it up as a todo and we can go over all of these

@ivarnakken ivarnakken added approved Pull requests that have been approved and removed review-needed Pull requests that need review labels Apr 16, 2023
@ivarnakken ivarnakken merged commit 8e85dfc into master Apr 16, 2023
4 checks passed
@ivarnakken ivarnakken deleted the ivarnakken/aba-135-improve-radiobutton-component branch April 16, 2023 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Pull requests that have been approved enhancement Pull requests that make enhancements, instead of just purely new features
Projects
None yet
3 participants