Skip to content

Add min touch size for control switch#51826

Open
piitaya wants to merge 1 commit intodevfrom
min_touch_size_control_switch
Open

Add min touch size for control switch#51826
piitaya wants to merge 1 commit intodevfrom
min_touch_size_control_switch

Conversation

@piitaya
Copy link
Copy Markdown
Member

@piitaya piitaya commented May 1, 2026

Proposed change

Alternative solution compared to #51804 to set min touch size for control switch.

Screenshots

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:
  • Link to developer documentation pull request:
  • Link to backend pull request:

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • I have followed the perfect PR recommendations
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

To help with the load of incoming pull requests:

@piitaya piitaya added this to the 2026.5 milestone May 1, 2026
@piitaya piitaya requested review from balloob and wendevlin May 1, 2026 12:26
@thecode
Copy link
Copy Markdown
Member

thecode commented May 3, 2026

I’m not sure what the final usability will look like after this PR, or the alternative mentioned in the description, but I wanted to share some feedback based on my current experience.

My UI still relies heavily on toggle switches, and even on a relatively large mobile screen (6.6"), it’s often difficult to tap the intended control. Quite frequently, I end up opening the “more-info” dialog instead of toggling the switch.

I understand the intention behind keeping a consistent toggle design across the UI (#51654), but I think there’s an important distinction to consider. A toggle used within a configuration page is interacted with very differently than one on a dashboard. Dashboard toggles are used frequently, sometimes hundreds of times a day, and often in less than ideal conditions, so they need to be especially easy and forgiving to tap.

Before this change, a large circular touch area made it much easier and more reliable to tap the toggle.
image

I also noticed #51507 but I am not sure what would be the outcome (besides looking nicer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants