Skip to content

Commit b508cb6

Browse files
authored
Merge pull request opf#18462 from opf/housekeeping/62570-replace-optoast-with-primer-banner-component-in-progress-admin-form
[62570] Replace opToast with Primer Banner component in progress admin form
2 parents da3adcb + dda5d94 commit b508cb6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

app/views/admin/settings/progress_tracking/show.html.erb

+6-7
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,13 @@ primer_form_with(
5555
}
5656
)
5757
form.html_content do
58-
tag.div(
59-
class: "op-toast -warning -with-bottom-spacing",
60-
hidden: true,
61-
data: { admin__progress_tracking_target: "warningToast" }
58+
render(
59+
Primer::Alpha::Banner.new(
60+
scheme: :warning,
61+
data: { admin__progress_tracking_target: "warningToast" }
62+
)
6263
) do
63-
tag.div(class: "op-toast--content") do
64-
tag.p(data: { admin__progress_tracking_target: "warningText" })
65-
end
64+
render(Primer::Beta::Text.new(data: { admin__progress_tracking_target: "warningText" }))
6665
end
6766
end
6867
form.radio_button_group(

0 commit comments

Comments
 (0)