upgrade button component in dialog
ADD
.changeset/eight-ghosts-marry.md
+---
+"@primer/view-components": patch
+---
+
+Update `with_show_button` slot to use `Primer::Beta::Button` instead of `Primer::ButtonComponent`.

MODIFY
.playwright/screenshots/previews.test.ts-snapshots/primer/alpha/dialog/default.png
.playwright/screenshots/previews.test.ts-snapshots/primer/alpha/dialog/default.png
Binary files a/.playwright/screenshots/previews.test.ts-snapshots/primer/alpha/dialog/default.png and b/.playwright/screenshots/previews.test.ts-snapshots/primer/alpha/dialog/default.png differ

MODIFY
.playwright/screenshots/previews.test.ts-snapshots/primer/alpha/dialog/focused.png
.playwright/screenshots/previews.test.ts-snapshots/primer/alpha/dialog/focused.png
Binary files a/.playwright/screenshots/previews.test.ts-snapshots/primer/alpha/dialog/focused.png and b/.playwright/screenshots/previews.test.ts-snapshots/primer/alpha/dialog/focused.png differ

MODIFY
app/components/primer/alpha/dialog.rb
app/components/primer/alpha/dialog.rb
@@ -51,14 +51,14 @@ module Primer
# Optional button to open the dialog.
#
- # @param system_arguments [Hash] The same arguments as <%= link_to_component(Primer::ButtonComponent) %>.
+ # @param system_arguments [Hash] The same arguments as <%= link_to_component(Primer::Beta::Button) %>.
renders_one :show_button, lambda { |**system_arguments|
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] })
- Primer::ButtonComponent.new(**system_arguments)
+ Primer::Beta::Button.new(**system_arguments)
}
# Header content.

upgrade button component in dialog (#1753)

Co-authored-by: Jon Rohan <rohan@github.com>