usable-cert-validation icon indicating copy to clipboard operation
usable-cert-validation copied to clipboard

Better error name copy-paste

Open mukrop opened this issue 3 years ago • 4 comments

Use the accessibility options to copy error name without hyphens?

mukrop avatar Oct 14 '21 14:10 mukrop

Could you please provide more informations, so that I can start working on this issue?

leonspohr avatar Oct 15 '21 14:10 leonspohr

Hi, Although the up for grabs label was more meant for anyone in the team, I'm open to external collaborators :-). (That explains why the description was rather brief, more of a note-to-self).

The issue is as follows: To provide a good mobile browsing experience (https://x509errors.org/), all "error block names" have discretionary hyphens after each underscore to wrap nicely on narrow screens. However, when copy-pasting the error code from the website, this is rather impractical (you don't get the error code but the error code with extra hyphens).

This issue needs someone to investigate if there is a better option (retaining the wrapping on narrow screens yet having the correct string copied). Someone told me there may be a way to set a different string to be copied via some HTML accessibility options (though I have never used such a feature before).

So, if you feel like it, do investigate and let me know here if you find a viable solution :-).

mukrop avatar Oct 15 '21 15:10 mukrop

Ok, I would really like to look into this issue, but I don't really know, where to start. Could you at least tell me, in which HTML file this occurs?

leonspohr avatar Oct 15 '21 15:10 leonspohr

It's in the template for the error box, https://github.com/crocs-muni/usable-cert-validation/blob/master/_includes/error_box.html

On the fourth line, the error code is input as the title with a replacement filter (underscore for underscore and the hyphen).

On Fri, Oct 15, 2021, 17:13 Qangeldratsch @.***> wrote:

Ok, I would really like to look into this issue, but I don't really know, where to start. Could you at least tell me, in which HTML file this occurs?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/crocs-muni/usable-cert-validation/issues/119#issuecomment-944381672, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOI6PDW6KR27BNH7AFJNNTUHBAIZANCNFSM5F72RM7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mukrop avatar Oct 17 '21 06:10 mukrop