Skip to content

Add slot support to Pajamas alert component

Per this conversation this MR refactors the Pajamas::AlertComponent to use slots to render body and action sections. This makes it so we don't have to use the .gl-alert-body and .gl-alert-actions in every use.

I didn't check every single alert manually but I did spot check a few of them.

The below are expected to look the same:

Before After
Screen_Shot_2022-04-29_at_9.24.27_AM Screen_Shot_2022-04-29_at_9.02.00_AM
Screen_Shot_2022-04-29_at_9.23.33_AM Screen_Shot_2022-04-29_at_9.04.03_AM
Screen_Shot_2022-04-29_at_9.22.26_AM Screen_Shot_2022-04-29_at_9.05.05_AM
Screen_Shot_2022-04-29_at_9.19.35_AM Screen_Shot_2022-04-29_at_9.07.43_AM
Edited by Peter Hegman

Merge request reports