sui-components icon indicating copy to clipboard operation
sui-components copied to clipboard

Improve checking of buttons props on MoleculeNotification ✨

Open jelowin opened this issue 2 years ago • 0 comments

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

jelowin avatar Aug 04 '23 09:08 jelowin