mi6 / mi6/ic-ui-kit

Merge clickable and interactive cards to provide more flexibility in use

Open
#1,022 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

card component
Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 4h
Merged PRs (30d)
15

Description

## Summary
Currently, a clickable card is defined so that the card itself is the clickable area, and no other clickable elements can be added to the card. However, it is quite likely that a card may need to be clickable itself and inlcude other clickable content such as menu icon button or quick action.

Therefore, a proposal has been made from a community project to merge the two types of cards and provide both sets of functionality for either.

## 💬 Description
Give interactive cards an option to be clickable themselves. This would allow the menu button to be used, the action area to be used, and also the card itself to be clickable.

Investigate styling implication for interaction states as highlight the whole card background may conflict with other clickable elements inside the card.

Deprecate the old clickable card in favour of the updated interactive card.

Static cards should still remain a separate option as these should have no clickable elements.

## 💰 Use value
This makes the card components more flexible for more situations and puts the decisions on what clickable elements should be contianed into the hands of the product designer.

## Additional info
Tell us anything else useful to help us understand your suggestion.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by locating the interactive, clickable, and static card components and their interaction-state tests, then review how nested menu and action controls are handled. Done means interactive cards can optionally be clickable, styling works with nested clickable elements, the old clickable card is deprecated, and static cards remain non-interactive.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
design, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.