Use a button element for button_to

This commit is contained in:
Tom Hughes 2022-02-21 19:07:38 +00:00
parent cb8419456b
commit b86390d303
2 changed files with 3 additions and 2 deletions

View file

@ -1182,8 +1182,9 @@ tr.turn:hover {
/* Rules for messages pages */ /* Rules for messages pages */
.messages { .messages {
input[type="submit"] { button[type="submit"] {
margin: auto; margin: auto;
white-space: nowrap;
} }
.inbox-row { .inbox-row {

View file

@ -11,7 +11,7 @@
# `button_to` view helper will render `<button>` element, regardless of whether # `button_to` view helper will render `<button>` element, regardless of whether
# or not the content is passed as the first argument or as a block. # or not the content is passed as the first argument or as a block.
# Rails.application.config.action_view.button_to_generates_button_tag = true Rails.application.config.action_view.button_to_generates_button_tag = true
# `stylesheet_link_tag` view helper will not render the media attribute by default. # `stylesheet_link_tag` view helper will not render the media attribute by default.
Rails.application.config.action_view.apply_stylesheet_media_default = false Rails.application.config.action_view.apply_stylesheet_media_default = false