You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/components/primer/open_project/danger_dialog.rb
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,8 @@ class DangerDialog < Primer::Component
65
65
# @param form_arguments [Hash] Allows the dialog to submit a form. Pass EITHER the `builder:` option to this hash to reuse an existing Rails form, or `action:` if you prefer the component to render the form tag itself. `builder:` should be an instance of `ActionView::Helpers::FormBuilder`, which is created by the standard Rails `#form_with` and `#form_for` helpers. The `name:` option is the desired name of the field that will be included in the params sent to the server on form submission.
66
66
# @param id [String] The id of the dialog.
67
67
# @param title [String] The title of the dialog. Although visually hidden, a label is rendered for assistive technologies.
68
+
# @param confirmation_live_message_checked [String] The message announced to assistive technologies when the confirmation checkbox is checked. Defaults to "Confirmation checkbox checked. You can now proceed."
69
+
# @param confirmation_live_message_unchecked [String] The message announced to assistive technologies when the confirmation checkbox is unchecked. Defaults to "Please check the confirmation box to proceed."
68
70
# @param confirm_button_text [String] The text of the confirm button. Will default to `I18n.t("button_delete")`, or `I18n.t("button_delete_permanently")` if `confirmation_check_box` slot has been passed to the component.
69
71
# @param cancel_button_text [String] The text of the cancel button. Will default to `I18n.t("button_cancel")`.
0 commit comments