Skip to content

Add a customizable contentDescription for the search icon (accessibility/i18n) #23

Description

@cloudigits

The leading search icon's contentDescription is fixed to the literal "Search" with no parameter to override or localize it. Apps in other locales get an English screen-reader label regardless of the app's configured language, and there's no way to customize the label for context (e.g. "Search products" vs generic "Search").

This isn't an existing behavior that's broken — there's just no config surface for it today, so filing as an enhancement rather than a bug.

Suggestion: expose it as a field on AnimatedSearchBarConfig, e.g. searchIconContentDescription: String = "Search", so callers can override/localize it like the other text-facing config (placeholderTextString).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions