bitcrowd / bitstyles_phoenix

A collection of Elixir phoenix helpers for bitstyles
ISC License
12 stars 0 forks source link

Render story iframe in external document #128

Closed angelikatyborska closed 4 months ago

angelikatyborska commented 4 months ago

This PR renders story iframes in external documents (src="/file_path.html") instead of inlined documents (srcdoc="<html>..."). This is necessary for me to be able to use the WAVE browser extension to do accessibility checks of the components.

WAVE cannot run checks on iframe on a page, so I need to "open iframe in a new tab" to run WAVE on its content. But you can only do that when the iframe is an external document.

https://github.com/bitcrowd/bitstyles_phoenix/assets/7852553/601e19ca-978b-43ab-b53d-6b400126971f