app/components/primer/alpha/dialog.rb in primer_view_components-0.0.114 vs app/components/primer/alpha/dialog.rb in primer_view_components-0.0.115
- old
+ new
@@ -16,10 +16,11 @@
#
# The combination of both `:title` and `:dialog_id` establishes an
# `aria-labelledby` relationship between the title and the unique id of
# the dialog.
class Dialog < Primer::Component
+ warn_on_deprecated_slot_setter
status :alpha
audited_at "2022-10-10"
DEFAULT_SIZE = :medium
SIZE_MAPPINGS = {
@@ -56,10 +57,12 @@
system_arguments[:classes] = class_names(
system_arguments[:classes]
)
system_arguments[:id] = "dialog-show-#{@system_arguments[:id]}"
system_arguments[:data] = (system_arguments[:data] || {}).merge({ "show-dialog-id": @system_arguments[:id] })
+ # rubocop:disable Primer/ComponentNameMigration
Primer::ButtonComponent.new(**system_arguments)
+ # rubocop:enable Primer/ComponentNameMigration
}
# Header content.
#
# @param show_divider [Boolean] Show a divider between the header and body.