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

Bug Fix: allow click of label and box for box-radio component #10586

Merged
merged 3 commits into from
Dec 16, 2020

Conversation

Monkeychip
Copy link
Contributor

Because we're now in Glimmer land and this is not a crucial fix that needs to be backported, I went ahead and transformed the box-radio component to a glimmer component.

The main fix was removing the extra label element and adjusting the style.

With fix (before you could not click on the round radio button to select)

box-radio

@Monkeychip Monkeychip added ui bug Used to indicate a potential bug labels Dec 16, 2020
@Monkeychip Monkeychip added this to the 1.7 milestone Dec 16, 2020
Copy link
Contributor

@chelshaw chelshaw left a comment

Choose a reason for hiding this comment

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

It's so amazing how much simpler glimmer-ifying made this fix! 🙌 Good job!

@@ -16,11 +16,13 @@
* @param {string} [tooltipMessage=default] - The message that shows in the tooltip if the radio option is disabled
*/

import Component from '@ember/component';
import Component from '@glimmer/component';
Copy link
Contributor

Choose a reason for hiding this comment

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

👏

@Monkeychip Monkeychip merged commit 64f7894 into master Dec 16, 2020
@Monkeychip Monkeychip deleted the ui/radio-box-bug-fix branch December 16, 2020 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants