Skip to content

[MediaCard] Extraneous space when card has no actions #4534

@kaelig

Description

@kaelig

Issue summary

In vertical view (smaller viewports), MediaCard without primaryAction or secondaryAction has extra space at the bottom.

Expected behavior (no extraneous space between description and bottom)

1jxxq csb app_ (4)

Actual behavior (extraneous space between description and bottom)

1jxxq csb app_ (3)

Reduced test case

      <MediaCard
        title="Turn your side-project into a business"
        description={`In this course, you’ll learn how the Kular family turned their mom’s recipe book into a global business.`}
      >
        <VideoThumbnail
          videoLength={80}
          thumbnailUrl="https://burst.shopifycdn.com/photos/business-woman-smiling-in-office.jpg?width=1850"
        />
      </MediaCard>

https://codesandbox.io/s/determined-flower-1jxxq?file=/App.js

Specifications

  • Are you using the React components? (Y/N): Y
  • Polaris version number: 7.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken and not working as intended in the system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions