I’ve made a PR with some accessibility improvements:
https://github.com/discourse/discourse-spoiler-alert/pull/105