Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-31511

Need to apply display type to Widget Card Bodies

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Unset
    • No
    • PlatEx UI Sprint 13

      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:

      1. Add a unique ID or class to the Cards (perhaps in widget defaults)  that we can queue off of in the individual widgets stylesheets.
      2. Set a CardBody display type per widget (with block as default).   https://github.com/RedHatInsights/widget-layout/blob/master/src/Components/Widgets/widgetDefaults.ts

              aferdina@redhat.com Alexandra Ferdinand
              ewinchel@redhat.com Eric Winchell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: