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

The toggle should be rendered as inline-block instead of block #13721

Closed
lzl124631x opened this issue Jun 19, 2020 · 9 comments · Fixed by #16195
Closed

The toggle should be rendered as inline-block instead of block #13721

lzl124631x opened this issue Jun 19, 2020 · 9 comments · Fixed by #16195

Comments

@lzl124631x
Copy link

lzl124631x commented Jun 19, 2020

Environment Information

Please provide a reproduction of the bug in a codepen:

Actual behavior:

image

In the above screenshot, the red lines are clickable and will toggle the toggle, which is unexpected and inconsistent because the green lines are not clickable.

Accidentally clicking on those red lines causing unexpected toggling is very annoying.

Expected behavior:

image

only these green areas should be clickable

Priorities and help requested:

Are you willing to submit a PR to fix? YES

Requested priority: (Blocking, High, Normal, Low)

Products/sites affected: (if applicable)

@lzl124631x
Copy link
Author

ping

@paulgildea
Copy link
Member

@xugao Do you think making this fix will break existing customers?

If @xugao confirms that this is a safe fix @lzl124631x feel free to submit a PR

@xugao
Copy link
Contributor

xugao commented Jun 23, 2020

@lzl124631x - i believe the right fix should be to preventDefault on Label click:

<Label htmlFor={this._id} className={classNames.label} id={labelId}>

So we need to add onClick on this line and add ev.preventDefault logic

@qianghuang1
Copy link
Contributor

What's the ETA for this bug?

@zeedomD
Copy link

zeedomD commented Aug 10, 2020

Any updates on this issue? Thanks.

@xugao
Copy link
Contributor

xugao commented Dec 9, 2020

@qianghuang94 , @zeedomD - sorry for the delay. I will take a look at this

@msft-fluent-ui-bot
Copy link
Collaborator

🎉This issue was addressed in #16195, which has now been successfully released as @fluentui/react-toggle@v1.0.0-beta.31.:tada:

Handy links:

@msft-fluent-ui-bot msft-fluent-ui-bot added Status: Fixed Fixed in some PR and removed Status: In PR labels Jan 19, 2021
@msft-fluent-ui-bot
Copy link
Collaborator

🎉This issue was addressed in #16500, which has now been successfully released as office-ui-fabric-react@v7.156.0.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉This issue was addressed in #16500, which has now been successfully released as @fluentui/react-examples@v0.11.10.:tada:

Handy links:

@microsoft microsoft locked as resolved and limited conversation to collaborators Feb 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.