Skip to content

[Component] [message] ElMessage with vNode message is missing message body style #23351

@romankaravia

Description

@romankaravia

Bug Type: Component

Environment

  • Vue Version: 3.5.26
  • Element Plus Version: 2.13.0
  • Browser / OS: Firefox 146 / Ubuntu 24.04
  • Build Tool: Vite

Reproduction

Related Component

  • el-message

Reproduction Link

Element Plus Playground

Steps to reproduce

  • Call ElMessage with a message that is a vNode instead of an HTML string

What is Expected?

  • The message body is styled in the same way (e.g. success message is green)

What is actually happening?

  • The message body is missing the style

Additional comments

Screenshot

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions