-
Task
-
Resolution: Done
-
Normal
-
None
-
None
-
None
Some of our widgets (simple widgets in particular) will need display: flex; (as opposed to display: block) applied to card_body to allow the content to stretch to fill the parent, but we can’t apply it across the board or it breaks other layouts (like Events, and Favorites) It needs to be scoped per widget. (We also may need to make overflow-y: scroll; optional down the road)
I can think of two approaches:
- Add a unique ID or class to the Cards (perhaps in widget defaults) that we can queue off of in the individual widgets stylesheets.
- Set a CardBody display type per widget (with block as default). https://github.com/RedHatInsights/widget-layout/blob/master/src/Components/Widgets/widgetDefaults.ts