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

Prevent menu options with toggles or radio selectors from being clicked #350

Closed
2 tasks done
andrewtavis opened this issue Aug 11, 2023 · 7 comments
Closed
2 tasks done
Labels
feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@andrewtavis
Copy link
Member

Terms

Description

As of now all menu options in Scribe's new menu can be selected across the entire area of the field. This leads to undesired behavior for those options that have toggles and for those that will eventually be radio button selectors. In this case only the toggle or radio button and the corresponding information icon should be user interactable. Looking at the Settings screen for German:

Simulator Screenshot - iPhone 14 Pro Max - 2023-08-11 at 18 37 30

The user can also click on the full button for Period and Comma on ABC rather than just the toggle. This then triggers the menu option button, but nothing happens.

Contribution

Happy to support someone who wants to work on this or work on it myself :)

@andrewtavis andrewtavis added feature New feature or request help wanted Extra attention is needed new keyboard Adding a new language keyboard labels Aug 11, 2023
@andrewtavis
Copy link
Member Author

@SaurabhJamadagni, FYI on this, but I think that this is a good first issue for a new contributor :)

@andrewtavis andrewtavis added good first issue Good for newcomers and removed new keyboard Adding a new language keyboard labels Aug 11, 2023
@SaurabhJamadagni
Copy link
Collaborator

Ahhh right @andrewtavis! This was actually a to-do on my list. This could definitely be a good first issue. Happy to help anyone interested as well 😊

@martimgaspar
Copy link

Working on it!

@andrewtavis
Copy link
Member Author

andrewtavis commented Sep 18, 2023

Thanks @martimgaspar! Hey @SaurabhJamadagni, when you get a moment, do you have an idea of where the change here should happen? We likely need to do some kind of isUserInteractionEnabled = false. @martimgaspar and I were communicating in the iOS channel on Matrix and I think his intuition for InfoChildTableViewCell sounds right to me, but then you'd know better :)

@SaurabhJamadagni
Copy link
Collaborator

Hey @andrewtavis and @martimgaspar! Sorry for the delay in my response. The change might have to go in ParentTableViewCell where we configure the child cell. This is because we most likely cannot disable interaction on the cell as the toggle inside will also not be user interaction enabled. I could not think of a way to override it. Please let me know if it can be overridden, then InfoChildTableViewCell would be the right place to make the change. We'll have to be careful in disabling user interaction though as the cells that don't have a toggle and instead have a chevron and direct to a different page also use the same component. So the disabling will most likely have to be conditional.

Let me know if I can help any further. Thank you so much for taking this issue on @martimgaspar! 😊

@andrewtavis
Copy link
Member Author

Heyo @martimgaspar! I'm slowly getting back into the groove of things post being sick. We have a dev sync tomorrow at 14:00 UTC that would be great to have you join! Details for the call are in the General channel on Matrix. Would be great to meet you and we can discuss the all in call 😊

@andrewtavis andrewtavis changed the title Prevent menu option's with toggles or radio selectors from being clicked Prevent menu options with toggles or radio selectors from being clicked Apr 1, 2024
@andrewtavis
Copy link
Member Author

Note that on checking this, this has been fixed by the work done to close #330 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Archived in project
Development

No branches or pull requests

3 participants