Currently the aria-label is being set as html_title or 'Contact form' as default. A better default should be the title in the shortcode which is more accurate than 'Contact form'. The title is already added by default as well, so saves time going through each form and adding html_title.
Hello,
Currently the aria-label is being set as html_title or 'Contact form' as default. A better default should be the title in the shortcode which is more accurate than 'Contact form'. The title is already added by default as well, so saves time going through each form and adding html_title.
'aria-label' => ( '' !== $title_attr ) ? $title_attr : __( 'Contact form', 'contact-form-7' )