Skip to content

4.x - Add "cover" as a shape option for card component #804

@bspeare

Description

@bspeare

As a user of the card component, I would like to stretch my card image to fill the vertical space of the card using the "cover" shape option that applies the object-fit property.

Proposed solution

Shape

  • Circle
  • Widescreen
  • Widescreen: cover
  • Square
  • Square: cover

With padded

Screen Shot 2022-10-20 at 12 48 05 PM

Without padded

Screen Shot 2022-10-20 at 12 48 35 PM

You can preview this functionality in #803.

Metadata

Metadata

Assignees

No one assigned

    Labels

    4.x4.x version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions