Subsections creating unwanted anchor tags

Created on 11 September 2024, 4 months ago

Problem/Motivation

While adding subsections to ptoc containers. They are creating some unwanted anchor tags in the source code. Which makes it difficult for screen readers and failed accessibility tests.

Steps to reproduce

Add a container and add a title. Now to the same container add different subsections. For example

Title container

subsection 1
subsection 2
subsection 3

Now click save. Page will work fine for normal users. Now try clicking on tab. Actually it hovers over same title for 3 times. Then i inspected the source code was able to see 3 anchor tags

Empty link: any time a subsection is created in the page contents component 3 empty links get added so it's a bug that just needs fixing so the empty links don't appear .

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India rifas-ali-pbi Kerala

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @rifas-ali-pbi
  • Status changed to Postponed: needs info 4 days ago
  • 🇺🇸United States benjifisher Boston area

    Is this the same problem reported in 🐛 Extra, unnecessary anchor links in ToC Fixed ? If so, then it should already be fixed. I am optimistically adding that as a related issue.

    By "Now try clicking on tab.", I think you mean using keyboard navigation (Tab) to move through the table of contents.

    If this issue is not the same, then please give more detail. Can you show the markup that you see, with the extra <a> tags?

Production build 0.71.5 2024