Skip to content

Fix link togglers jumping to top

What does this MR do?

  • Update .js-toggle-button to be actual button tags

Using <button> is semantically more accurate for the usage and we don't need the previous e.preventDefault() unless inside a <form>

Are there points in the code the reviewer needs to double check?

Togglers to check:

Why was this MR needed?

  • We used a tags with empty fragment href="#" which would jump you to the top of the page when clicked

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #29414 (closed)

Merge request reports