Set dynamic wrapper element for Did you find webform block

Created on 21 June 2022, over 2 years ago
Updated 23 February 2024, 10 months ago

Problem/Motivation

The Did you find webform block is always wrapped in a <section> element. Since the block title is always hidden (as per Canada.ca) there is no H2 added to the block, and this causes a WCAG validation warning. This block template file should follow a similar approach to set the wrapper element as in the related tickets.

Steps to reproduce

After you run a page with the Did you find webform on it through W3C markup validation, see warning:

Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections, or else use a div element instead for any cases where no heading is needed.

Feature request
Status

Fixed

Version

4.3

Component

WxT Bootstrap

Created by

🇨🇦Canada Nasr2000 Ottawa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024