Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A a11yproject.com
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The A11Y Project
  • a11yproject.com
  • Merge requests
  • !1034

Close #1013: Add permalink to checklist items

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/andrewborstein/add-permalink-to-checklist-items into main Aug 02, 2020
  • Overview 4
  • Commits 5
  • Pipelines 0
  • Changes 3

Created by: andrewborstein

Closes #1013 (closed)

Permalink Example

Visitors on the Checklist page can now

  1. Expose the URL to an individual checklist item by pressing its associated "Permalink" anchor element
  2. Visit a checklist item permalink URL like /checklist/#validate-your-html, which scrolls the item into view and (when JS is enabled) opens its details
a11yproject.com checklist item opened and featuring new permalink

Notes and Questions

  • I'm open to other UI suggestions! I wanted to aim for something simple, conventional, and matching existing styles. But I'm unsure if this link could benefit from some other visual distinction, particularly from the checklist item citation link.
  • Is "Permalink" too jargony? I also considered copy like "Share Link" or "Shareable URL".
  • Does associating the link to its checklist item via aria-describedby sufficiently meet 2.4.4 Link Purpose (In Context)? Including the entire title in the visible link text seemed liked overkill and rendering visually hidden text seemed unnecessary when the text already exists and could be linked using this technique.
  • I noticed a bug in Chrome where continually refreshing the page with a permalink URL in place continues scrolling further and further down the page instead of reloading the same scroll position. The issue doesn't occur when visiting the URL in new tabs or windows, or in Firefox or Safari. It might be related to this bug 🤷 , but doesn't seem like a critical user flow that needs to be supported above and beyond the first page visit always working.
  • I wanted to extract checklist.title | slugify to a local variable but couldn't figure out how. I don't have a ton of Nunjucks / 11ty experience, so insight there is appreciated!
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/andrewborstein/add-permalink-to-checklist-items