More screenreader friendly hidden content

Fixes #14348 by adding `visibility: hidden` and `visibility: visible` to the collapse and tab content to match `.hidden`.

/cc @Willem-Siebe