Skip to content

[a11y] Change SearchView behaviour to set as a heading  #4452

Closed

Description

@Aitorbp

In this accessibility issue #4362 it was reported that the Spaces title in the toolbar should work as a heading.

The problem is that this title is part of the SearchView, so when clicking on it (title + search icon) the search element opens, so that this title is not working as a heading but as a SearchView.
Therefore, an appropriate solution could be to separate the title element from the icon, in this way the title could work as a heading (it would not have a clickable option) and the icon as the searchview that would be the one to open the search element.

Looking at other apps, this is how they behave:

Accessibility settings android system:
In this case the title and the icon are separated. The first one has no functionality, while the second one opens the search element.
The title is not set as heading.

accessibility_settings_android_system

Drive:
In drive the behavior is different: You can make a selection in the whole toolbar and the talkback says: Search in Brive editbox. Afterwards you can access each element separately. In neither case do I name these elements as headings.

Captura de pantalla 2024-08-13 a las 10 52 29

My proposal would be to not put the title of the SearchView as heading and separate the title element from the icon. Open to discussion. It would be necessary to investigate if this is possible to do, since in the current application there are two toolbars coexisting.

TASKS

  • Research (if needed)
  • Create branch feature/feature_name
  • Development tasks
    • Implement whatever
    • ...
    • Implement unit tests (if needed)
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/feature_name into master

Activity

  1. added this to the Accessibility milestone on Sep 30, 2024
  2. changed the title [-]Change SearchView behaviour to set as a heading [/-] [+][a11y] Change SearchView behaviour to set as a heading [/+] on Sep 30, 2024
  3. JuancaG05 commented on Apr 8, 2025

    @JuancaG05
    Contributor

    Due to the complexity of handling several toolbars (ActionBar, StandardToolbar and RootToolbar), each of them with their own characteristics, it's not feasible now to make a change like this straight. In addition, we can see that other apps following best practices, as mentioned in the issue, don't separate search bar in 2 different views, such as Google Drive (which follows Material Design strictly). Having full accessibility support would imply moving to Jetpack Compose and use the SearchBar component.

    More info: #4433 (comment) and #4366 (comment)

    Closing this since it is out of scope.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions