Two scenarios with a container set to an “a” tag containing a button.
- Column set to an “a” tag
- Div set to an “a” tag
Column set to an a tag.
If a column contains a button and both the container and button have a link on then in the front end the column contains the link and the button the link is removed. As such everything works as expected as you can’t nest a tags in HTML.
Div set to an a tag
If a “div” contains a button and both the div and button have a link they appear correctly in the builder. On the front-end the layout is broken as both the div and the button contain a link. As such the code breaks the button out of the div container. In this scenario, unlike a column, the link is not removed from the button.
Obviously we can leave the link off the button which doesn’t break the layout but one would expect a consistent behaviour when buttons are nested inside a container that is set to an a tag.