hmrc / accessibility

Apache License 2.0
22 stars 5 forks source link

Page heading captions #31

Open adamliptrot-oc opened 4 years ago

adamliptrot-oc commented 4 years ago

We're seeing a few services employing page heading captions as per GDS pattern, but want to encourage use of the more accessible HMRC pattern. However there is complexity in combining the h1 with a legend and the caption which we need to look into and provide a best practice example which will work with exsiting components or build a new one.

adamliptrot-oc commented 4 years ago

Additional concern. If an iOS user is using drag to look for the first item of content on the page they will find the caption. If they then use swipe to progress they will skip the h1 as VO will use source-code order.

Ideally we'd be using an aria-describedby on the h1 but with the current Gov Frontend components attributes can only be sent to the label so this is not possible.

ashfaqhussain357 commented 2 months ago

Not sure if this is still an issue. Further investigation pending.