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

Fix UiSwitch thumb overlapping an open modal #514

Merged
merged 1 commit into from
Dec 31, 2021

Conversation

jeff-hykin
Copy link
Contributor

Current Behavior (switch bleeds into model, even with modal z-index: 99999)

Screen Shot 2020-10-12 at 1 43 55 PM

Screen Shot 2020-10-12 at 1 44 14 PM




Behavior After .ui-switch__thumb { z-index: unset }

Screen Shot 2020-10-12 at 1 45 34 PM




This PR Behavior (change element order instead of using z-index)

Screen Shot 2020-10-12 at 1 50 15 PM

Screen Shot 2020-10-12 at 1 50 33 PM

@JosephusPaye
Copy link
Owner

Hi @jeff-hykin,

Thanks for the PR! Were you able to check with other browsers to confirm that it works?

Happy to merge this if there's no regression.

@jeff-hykin
Copy link
Contributor Author

jeff-hykin commented Oct 13, 2020

Yes, should work on any browser that merely implements the HTML 5 specification, tested on Firefox and Chrome.

The original z-index was only needed because the elements were out of order (probably on accident).

@jeff-hykin
Copy link
Contributor Author

jeff-hykin commented Oct 13, 2020

Note there is a similar issue with ui-buttons having a z-index, but I can't confirm removing it doesn't cause side effects so it's not in this PR. I should probably open an issue for it

@JosephusPaye JosephusPaye changed the title Fix z-index causing overlap with modal Fix UiSwitch thumb overlapping an open modal Dec 31, 2021
@JosephusPaye JosephusPaye merged commit 603a3ca into JosephusPaye:next Dec 31, 2021
@JosephusPaye
Copy link
Owner

Thanks!

@JosephusPaye
Copy link
Owner

Released in v1.3.2

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.

2 participants