Skip to content
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

Code expansion and copy to clipboard aren't discoverable on mobile #8

Open
wilkinsona opened this issue Mar 9, 2021 · 2 comments
Open

Comments

@wilkinsona
Copy link
Contributor

On mobile, the code expansion and copy to clipboard buttons are invisible. If you know that they're there, you can tap on them and they then appear, but there's no way to discover them other than accidentally.

I think it would be better if the buttons were always visible on all devices. Even with a mouse, having to hover over the block isn't very discoverable. If you want to copy a block, you may not notice the button appear in the bottom-right corner of the block as you start selecting its content in the top-left corner.

@philwebb
Copy link
Contributor

philwebb commented Mar 9, 2021

There's some example copy/paste sites in this issue https://gitlab.com/antora/antora-ui-default/-/issues/70 that might be worth looking at. There's also https://antora.gitlab.io/antora-ui-default/#.

It's a bit tricky to work out where to put the buttons that won't clash with the data-langage text that's displayed.

@wilkinsona
Copy link
Contributor Author

Thanks, Phil. I just had a look at those linked from https://gitlab.com/antora/antora-ui-default/-/issues/70 . https://fontawesome.com/how-to-use/javascript-api/setup/getting-started and https://docs.fauna.com/fauna/current/cookbook/?lang=javascript are my favourites. I particularly like Fauna with the ability to change the language. That could tie in nicely with the tabbed blocks (and then maybe switch wouldn't be such a bad name after all…!).

@philwebb philwebb added this to the general-backlog milestone Apr 6, 2021
philwebb pushed a commit to philwebb/spring-asciidoctor-backends that referenced this issue Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants