We need to first review the current state of accessibility of the Wikipedia Preview library and then create/improve accessibility functionality as needed. We should probably tap into accessibility expertise within the Foundation.
@eamedina I attempted to test this using AXE browser devtool. I am not on a pro version anymore so I cannot download the report. However, here are screenshots:
From this, the result that appears relevant is:
Element Location: .wmf-wp-with-preview
Element Source: <span data-wikipedia-preview="" data-wp-title="Cat" data-wp-lang="en" class="wmf-wp-with-preview">Cat</span>
I will hand this over to QTE to continue this task.