Skip to content

Preserve Lucide React default aria-hidden behavior #6

@Austin1serb

Description

@Austin1serb

Problem

icon-sprite should match Lucide React's default accessibility behavior: icons should include aria-hidden="true" by default unless the user explicitly overrides it.

Expected behavior

By default, rendered icons should include:

aria-hidden="true"

Users should still be able to override this behavior by passing their own accessibility props, for example when an icon is meant to be exposed to assistive technology.

Why

This keeps the package aligned with Lucide React defaults and prevents decorative icons from being announced by screen readers unless intentionally configured otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions