Altinn / Altinn/altinn-studio-docs

fix search engine optimization and find in page experience for information in accordians

Open
#1,656 3 comments 0 reactions 1 assignee View on GitHub

@bdb-dd is already working on this.

Since Jun 4, 2024.

kind/bug
Dominant language
CSS
Stars
15
Forks
59
Avg merge
1d 11h
Merged PRs (30d)
53

Description

Description

Several of our articles use accordian components to hide certain content by default. The standard way of implementing this has been to set the css property display: none. An unfortunate side effect of this, however, is that the hidden content is unavailable when using the in-page search function in the browser.

This article describes how to use an alternative approach that fixes this issue.

In particular, our Common deps page would be improved by implementing this change. Some work may be needed to deal with the caveats listed.

This new css feature is not yet supported by all browsers, but a backwards compatible implementation is possible.

https://caniuse.com/?search=until-found

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.