Skip to content

Improve Chip accessibility from ActionIcon #2188

@Mil4n0r

Description

@Mil4n0r

Is your feature request related to a problem? Please describe.
When using an action icon for either prefix or suffix, the displayed text in the tooltip is set by default and cannot be changed. In some scenarios it would be very helpful to do it but with the current API it is not possible.

Describe the solution you'd like
We should make some changes in the way the actions for the prefix and suffix are declared.

The proposed idea is removing prefixIcon, suffixIcon, onClickPrefix, onClickPrefix and follow this pattern instead, like other components do:

type Props = {
    ...
    suffix: { icon: SVG | string; onClick?: () => void; title: string },
    prefix: { icon: SVG | string; onClick?: () => void; title: string },
    ...
}; 

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestlibrarynon-closableThis task is exempt from becoming stale or automatically closed.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions