Why do radio buttons use legends instead of labels?


(John) #1

Hi,
I’m building a form and I noticed something odd.
For radio/checkbox questions, the title is placed inside the ‘legend’ tag instead of a ‘label’ tag.
Because form sections also use the ‘legend’ tag, it looks like each radio/checkbox question is in a different section. I have got around this with CSS but was curious as to why this is the case, because all other question types use the label tag for the titles.
Thanks!


(Aleks Bochniak) #2

sounds like a bug to me


(Bart Banda) #3

This is an artifact setting from the original implementation of the Custom Form asset in Matrix. It should technically probably only need to be in a tag like any other field.

I’ve added a roadmap entry for us to change this, however we’ll have to think about how it might impact on upgrades where people rely on it being a tag.


(John) #4

Thanks Bart! I have noticed a few other anomalies with the forms, where is the best place to report these?


(Bart Banda) #5

If you are a Squiz client, you can talk to your account manager about getting access to our roadmap tracking tool for bugs and features: https://squizmap.squiz.net/matrix