components icon indicating copy to clipboard operation
components copied to clipboard

[Feature Request]: Click Anywhere to Select A Card

Open MarrickLip opened this issue 2 years ago • 4 comments

Description

Cards are only selected if users click the small radio button / checkbox in the upper-right hand corner.

Allowing users to click anywhere on the card would be more user friendly. It would also increase discoverability of the ability to select cards as the cursor would change to a pointer whenever the user hovers over a card.

Ideally, there would also be an option to override this behaviour with a custom click handler.

Note that the Tiles component already supports click-anywhere behaviour, and so extending this change to Cards would also improve consistency.

Code of Conduct

MarrickLip avatar Aug 22 '22 10:08 MarrickLip

Hello, thanks for reaching out!

Can you please tell us a little bit more about your use-case, and why the current implementation does not work for you?

taheramr avatar Aug 24 '22 07:08 taheramr

I support (+1) this request Basically, right now, to select a card the client must click on the checkbox embedded in the card but, in my case, we would like to trigger this selection event by clicking in any part of the card and not only the checkbox.

image

  • Red where the click event is triggered

  • Gray (whole card area) where the selection should be triggered

alanoberto avatar Aug 25 '22 15:08 alanoberto

+1

DariusKunce avatar Aug 25 '22 15:08 DariusKunce

Hello again,

We currently don't support this behaviour due to the fact that cards components are used to represent actions buttons or links as mentioned in our usage guidelines.

In case you needed a component that is clickable anywhere you can use the our Tiles component, if you have further use-cases specific for the card let us know about it.

Amr

taheramr avatar Sep 08 '22 09:09 taheramr

Closing due to inactivity. Feel free to reopen if there are additional comments

just-boris avatar Oct 26 '22 10:10 just-boris