Content covered by nav menu when using within-page links (#)

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
frontend

Research direction

Reproduce the problem at the linked API page using the #method_check anchor and observe the method heading and first content line beneath the navigation bar. Trace the generated page and navigation behavior from that example; done means within-page links leave the targeted content visible rather than covered by the nav bar.

Written by the indexing model from the issue text.

Description

When using the link to navigate to a method (currently only possible by directly entering the respective URL, see https://github.com/joomla/api.joomla.org/issues/43), the method name and first line of content are covered by the nav bar.

For example, navigate to https://api.joomla.org/cms-4/classes/Joomla-CMS-Access-Access.html#method_check

The two first lines containing

check
Method to check if a user is authorised to perform an action, optionally on an asset.

are covered by the nav bar, which can be quite confusing.

It looks like this:
top content covered by NAV bar

Dominant language
Twig
Stars
5
Forks
8
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from joomla/api.joomla.org

All issues in joomla/api.joomla.org

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.