cloudscape-design / components

React components for Cloudscape Design System
https://cloudscape.design/
Apache License 2.0
2.32k stars 145 forks source link

[Feature Request]: Support group dividers on configurable dashboard #1702

Open Samrose-Ahmed opened 9 months ago

Samrose-Ahmed commented 9 months ago

Description

Currently, the BoardItem must have minimum rowSpan (height) of 2 (https://github.com/cloudscape-design/board-components/blob/19395ad6640efd93c30798d27d61a8b44b4b5c56/src/internal/constants.ts#L4)

But, for something like e.g a markdown/header/text component it is better to have a height=1 alllowed (e.g. imagine a header that is full width and height=1). I'm currently patching that one line.

Code of Conduct

just-boris commented 9 months ago

Hello!

With such a small row span, the board item will only fit the header and no content. Screenshot from modified version of our demo:

image

Is this what you want? Why?

Samrose-Ahmed commented 9 months ago

Think of e.g. headers of sections in a dashboard, where often the header is the only thing needed

e.g. in cloudwatch:

image

itd be good to make the body min height 0 as well.

just-boris commented 9 months ago

Alright, I got your ask now and updated the ticket name.

I think we can do better treatment for this feature than a "fake widget".

However it is the first time we receive this ask, so no particular plans to address this.