-
Notifications
You must be signed in to change notification settings - Fork 52
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
Switch - no clickable area #1511
Switch - no clickable area #1511
Conversation
I have posted my default cursor issue on Discourse: |
I saw the reply in the forum - are you okay to handle that being integrated into this PR @bartbutenaers, or want me to cover? |
Hi @joepavitt,
The feedback from @hotNipi was very clear, but I am starting to loose my ever-lasting battle with CSS... |
You were too close Bart
|
@hotNipi thanks for both the technical and mental support! Ok, I think it finally works now, so I will remove the draft label from the PR. There was another problem, which I think was a breaking change that sneaked in somehow in one of the recent releases. Anyway this demo flow seems to work now:
In the following demo, I click on each of the 3 area's (text, empty space and switch) to attempt to toggle the switch: P.S. Don't forget to squash the commits... |
Description
This is a follow-up of one of my other PRs, by adding the option "None":
In that case neither the label nor the switch itself would be clickable. Not relevant for most users, but cannot harm either to add for those that need it...
HOWEVER I have an open issue because you still get a hand-shaped cursor when hoovering above the switch. I apply the default cursor to both the label and the switch in my UISwitch.vue file:
The default cursor on my Windows portable is arrow-shaped. That works fine for the label and the empty area (between the label and the switch). But for the switch it keeps resulting in a hand-shaped cursor, indicating that you can click it (which is not the case for option "None"):
Don't get it fixed unfortunately. Me and CSS are unfortunately not best mates...
So I will mark it as DRAFT, allthough I won't be working on it anymore!
Related Issue(s)
Closes #1508
Checklist
flowforge.yml
?FlowFuse/helm
to update ConfigMap TemplateFlowFuse/CloudProject
to update values for Staging/ProductionLabels
area:migration
label