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

Nothing clickable to link to front-page headings #80

Open
hatched opened this issue Feb 28, 2020 · 16 comments
Open

Nothing clickable to link to front-page headings #80

hatched opened this issue Feb 28, 2020 · 16 comments
Assignees

Comments

@hatched
Copy link

hatched commented Feb 28, 2020

The h2 markup doesn't provide an id that can be used to link directly to sub headings like "Install" and "get started"

@Saviq
Copy link
Contributor

Saviq commented Mar 4, 2020

+1, @ricab this one's for you :)

@Saviq
Copy link
Contributor

Saviq commented Mar 4, 2020

@ricab
Copy link
Contributor

ricab commented Mar 5, 2020

Yup +1, this would indeed be nice :)

@matthewpaulthomas
Copy link

As far as I can tell, the only page on multipass.run that has “Install” and “Get started” headings is the front page. There, the h2s don’t have ids, but the sections do:
https://multipass.run/#install
https://multipass.run/#get-started
https://multipass.run/#learn-more

Saviq’s linked thread discusses “docs”, where @degville pointed out that it’s not specific to Multipass. So if this issue is really about Discourse-generated docs in general, I suggest reporting it in canonicalwebteam.discourse-docs.

@hatched
Copy link
Author

hatched commented Mar 9, 2020

Yes this was for the main page, not the docs. It's not intuitive to have to link to a section especially because there are no anchors to generate the links.

@matthewpaulthomas
Copy link

Well, ok, that deserves more thought. Other sites sometimes have visible anchor links at the end of headings. However:

  • That’s usually in long reference documents, not on a site’s front page.
  • If we did it on multipass.run, probably we should do it on microstack.run and microk8s.io too. (Not simultaneously, but at least planned.)

@matthewpaulthomas matthewpaulthomas changed the title Unable to link to headings Nothing clickable to link to front-page headings Mar 12, 2020
@evilnick
Copy link

It would also be nice on ubuntu.com/kubernetes/docs (not discourse generated)

@hatched
Copy link
Author

hatched commented Mar 13, 2020

A naive fix for this might be simply to make the headings an anchor tag to respective sections...#install for example.

@matthewpaulthomas
Copy link

If you mean “give them an id= attribute”, the sections already have those, and anyone looking at the HTML will find them.

If you mean “make them <a href links”, that would make them blue, and underlined on hover, which would be rather off-brand. I think we’d need a more subtle way of advertising that they’re anchors.

@hatched
Copy link
Author

hatched commented Mar 13, 2020

The blue & underline is strictly a design decision, it could be anything even have no hover or colour change effect - only to enable the deep linking.

@carkod
Copy link
Contributor

carkod commented Apr 12, 2022

Conversation seems to be stale, reopen if needed

@carkod carkod closed this as completed Apr 12, 2022
@ricab
Copy link
Contributor

ricab commented Apr 12, 2022

Hi @carkod, I think this is still pertinent. Clickable anchors in section headings make it easy to link against and to click and jump while surveying a document. People are resorting to blue links now, but I suspect that is not exactly aligned with design goals?

A customary approach is to have a hidden link symbol showing on mouse-over, on either side of the title text. Here is an example. Would a new issue in canonicalwebteam.discourse (or elsewhere) be better?

@carkod
Copy link
Contributor

carkod commented Apr 12, 2022

@davegoddard42 would you be able to take a look at this see what's the best approach?

@davegoddard42
Copy link

@carkod I'll do some investigation, and raise it in the Vanilla Working Group.

@anthonydillon
Copy link
Contributor

Heads up, this has been requested and validated by the working group.
canonical/vanilla-framework#3863

@davegoddard42
Copy link

Great - cheers @anthonydillon.

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

10 participants