Skip to content

Improve checking of buttons props on MoleculeNotification ✨ #2609

@jelowin

Description

@jelowin

Is your iteration request related to a problem?

On MoleculeNotification component, we have a prop that is an array called buttons and we are not checking buttons.length to show buttons sui-MoleculeNotification-buttonsContainer.

This is causing that, if we pass an empty array, the container is it painted.

Screenshot 2023-08-04 at 11 30 55

Incorrect View
Screenshot 2023-08-04 at 11 30 19

Correct View
Screenshot 2023-08-04 at 11 32 49

Describe the solution you'd like

Screenshot 2023-08-04 at 11 31 32

Screenshot 2023-08-04 at 11 31 51

Screenshots

No response

Additional context**

No response

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions