Skip to content

Chip delete button tap target is too small. #42455

Closed

Description

@gspencergoog

Now that InkResponse has a focus node in it, the delete button has a separate semantics node, which causes it to appear in the examples/flutter_gallery/accessibility_test.dart search for nodes to measure, and it's coming up as too small: it's 18x18 instead of 48x48, since the tap target is only the delete icon itself.

Fixing this will probably require wrapping the delete icon in a larger gesture detector above the InkResponse.

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)
    on Oct 10, 2019
  2. jonahwilliams commented on Oct 10, 2019

    @jonahwilliams
    Contributor

    IIRC, the delete chip icon isn't spec'd for touch devices.

  3. gspencergoog commented on Oct 10, 2019

    @gspencergoog
    ContributorAuthor

    That's correct, so we'll probably just have to fix our accessibility tests to ignore chips with a delete icon.

    In the mean time, I've temporarily skipped the chip_demo accessibility test.

  4. self-assigned this
    on Aug 4, 2020
  5. Hixie commented on Aug 5, 2020

    @Hixie
    Contributor

    Skipping just certain chips will be tricky given the current semantics-based implementation, because there's really nothing about the chip delete buttons that is recognizable in the semantics tree...

  6. jonahwilliams commented on Aug 5, 2020

    @jonahwilliams
    Contributor

    We could put a semantics tag like "noTouchSpec" or something on the semantics node, and then teach the tap target inspector to skip over those

  7. Hixie commented on Aug 5, 2020

    @Hixie
    Contributor

    yeah but that seems like such a weird thing to do to that API

  8. jonahwilliams commented on Aug 5, 2020

    @jonahwilliams
    Contributor

    Yeah, its basically like programming a skip into the test. Of course, the underlying issue remains - the chip delete buttons are unusable on touch devices 😞

  9. Hixie commented on Aug 6, 2020

    @Hixie
    Contributor

    I suppose another option is to make the hit test region bigger than the chip so that it's accessible...

  10. removed their assignment
    on Aug 6, 2020
  11. gspencergoog commented on Sep 22, 2021

    @gspencergoog
    ContributorAuthor

    So, I've been looking at this again recently, and it appears that the current implementation gets around this issue by not using an InkWell at all for the delete button, and thus avoiding having a focus node.

    This seems wrong too, since then the semantics don't mark the delete button as focusable.

  12. github-actions commented on Oct 8, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  13. locked as resolved and limited conversation to collaborators on Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)frameworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions