Skip to content

mt-modal-action does not pass slots #967

@SebastianFranze

Description

@SebastianFranze

Package

@meteor/component-library

Package version

4.21.1

Browser

No response

Operating System

No response

Link to minimal reproduction

No response

Steps to reproduce

Use the second example from https://meteor.shopware.com/?path=/docs/components-overlay-mt-modal--docs

Now pass down the frontIcon slot to the sw-modal-action component to display a checkmark in front of the button's label

<mt-modal-action
  :as="MtButton"
  variant="primary"
  @click="(done) => { done(); }"
>
  <template #iconFront="{ size }">
    <mt-icon name="regular-checkmark" :size="size" />
  </template>

  Confirm action
</mt-modal-action>

Actual behavior

The slot is not displayed. The icon from the example is not shown.

Expected behavior

The slot should be passed and displayed. The icon from the example should be shown

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/lowItems that don't require immediate attention.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions