-
Notifications
You must be signed in to change notification settings - Fork 85
fix copy citation button not working on clean #5004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
ajrbyers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I suggest having a hidden plain text version of this that the copy button can target? That way the syntax can remain for screenreaders and the copy/paste will work without inserting bullets?
I am not convinced (yet) because:
Perhaps we could discuss this further @ajrbyers ? |
|
@ajrbyers I think we discussed this and I convinced you - if not could you add here what you want me to do? |
In b-4890-loop-a11y-syntax while updating list syntax for loops across the theme, I updated the citation modals too. But on testing Clarity I found this breaks the copy citation function in two ways. First it places lists inside a span, which is invalid HTML and so they end up with an empty span and the lists afterwards. But the copy button is aiming at the span element, so effectively, it copies nothing. Changing out the span for a div doesn't work either, as having a list inside when copy/pasting ends up with bullets being added in when pasting into word.
So the best solution seems to be to revert the original change just for
citation_modals.htmlwhich was fortunately on a single commit. I have also made the same change to Clarity in #5000.This PR reverts 55fa11f a11y: #4890 update non-visible list syntax on clean