components icon indicating copy to clipboard operation
components copied to clipboard

[Feature Request]: Support customer icon for ButtonDropdown icon variants

Open phuctm97 opened this issue 1 year ago • 6 comments

Description

Currently when ButtonDropdown is set to variant icon or inline-icon, the icon is hard-coded to be the ellipsis icon. It would be great if we can customize the icon as well (by accepting iconName, iconUrl, etc.)

Code of Conduct

phuctm97 avatar Aug 31 '24 15:08 phuctm97

Hey @phuctm97 thanks for reaching out and requesting the feature. Could you share more context why you need custom the icon and ellipsis icon not suitable?

YueyingLu avatar Sep 09 '24 10:09 YueyingLu

Hey @phuctm97 thanks for reaching out and requesting the feature. Could you share more context why you need custom the icon and ellipsis icon not suitable?

For example: I have a "Settings" dropdown, a Settings icon would look a lot better and is more recognizable than an ellipsis.

phuctm97 avatar Sep 10 '24 14:09 phuctm97

+1. I'm actually curious why maintainers feel the request requires explanation why ellipsis icon not suitable. There are times, for example, a hamburger icon my be more suitable than ellipse. Also. afaict, Cloudscape does not provide a general purpose popover menu control, so this is all we have to work with and ellipse-only forces hand to pull in alternate component libraries to fill the gap.

rolanday avatar Sep 25 '24 01:09 rolanday

It is done this way for consistency. It is a single familiar shape, all users know what happens when clicking on it, no side effects attached.

With custom icons, it becomes unpredictable experience. If we add configurable icon, the very next feature request will be to add tooltip, because various icons are confusing. We will add tooltip – more corner cases will show up and need addressing.

Why going all this way if we can keep the UI plain and simple with consistent icons?

just-boris avatar Sep 25 '24 06:09 just-boris

It is done this way for consistency. It is a single familiar shape, all users know what happens when clicking on it, no side effects attached.

With custom icons, it becomes unpredictable experience. If we add configurable icon, the very next feature request will be to add tooltip, because various icons are confusing. We will add tooltip – more corner cases will show up and need addressing.

Why going all this way if we can keep the UI plain and simple with consistent icons?

This makes sense but I feel like a couple extra options would a good balance without compromising consistency so much.

phuctm97 avatar Sep 26 '24 04:09 phuctm97

Sure, we can discuss, which one of our icons could be useful there without compromising consistency

just-boris avatar Sep 26 '24 10:09 just-boris

This issue will automatically resolve if we don't hear back from you soon.

github-actions[bot] avatar Apr 07 '25 19:04 github-actions[bot]