You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running cypress-html-validate and cypress-axe or other tools to check accessibility or html-validation on the quill-editor element I get two warnings:
All other things pass with the editor so a bit sad to have to fall on what is probably a simple fix :) Guessing you can just convert the :before that contains the "Visit url:"-text to a real <label></label> and wrap it around the input and just add text to the link-tags and you are good to go.
We get around this by excluding ql-hidden in our tests but would be nice not having to do that for every project we use quill in.
The text was updated successfully, but these errors were encountered:
When running cypress-html-validate and cypress-axe or other tools to check accessibility or html-validation on the quill-editor element I get two warnings:
input missing label.
Element:
<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">
Anchor link must have a text describing its purpose:
Element:
<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>
Both of these elements are hidden in the dom with display: none; hence they are then still visible to validation tools etc.
<div class="ql-tooltip ql-hidden">
<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>
<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">
<a class="ql-action"></a>
<a class="ql-remove"></a>
</div>
This template seems to be added here: https://github.com/slab/quill/blob/ebe16ca24724ac4f52505628ac2c4934f0a98b85/packages/quill/src/themes/snow.ts
Version:
2.0.3
All other things pass with the editor so a bit sad to have to fall on what is probably a simple fix :) Guessing you can just convert the :before that contains the "Visit url:"-text to a real
<label></label>
and wrap it around the input and just add text to the link-tags and you are good to go.We get around this by excluding ql-hidden in our tests but would be nice not having to do that for every project we use quill in.
The text was updated successfully, but these errors were encountered: