Skip to content

Conversation

reakaleek
Copy link
Member

@reakaleek reakaleek commented Mar 15, 2025

Closes #705

@Copilot Copilot AI review requested due to automatic review settings March 15, 2025 01:33
@reakaleek reakaleek requested a review from a team as a code owner March 15, 2025 01:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to fix the table of contents progress indicator by updating the DOM element selectors and HTML structure.

  • Updated the headings selector to target elements within "#markdown-content".
  • Changed the container selector for the progress indicator to use the new ".toc-progress-container" element in the HTML.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Elastic.Markdown/Assets/toc-nav.ts Updated selectors to match the new HTML structure for the progress indicator
src/Elastic.Markdown/Slices/Layout/_TableOfContents.cshtml Changed the HTML structure to accommodate a progress container div around the toc list

@reakaleek reakaleek self-assigned this Mar 15, 2025
@reakaleek reakaleek added the fix label Mar 15, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@reakaleek reakaleek enabled auto-merge (squash) March 17, 2025 11:23
@reakaleek reakaleek merged commit 6b7b570 into main Mar 17, 2025
8 checks passed
@reakaleek reakaleek deleted the feature/fix-table-of-contents-indicator branch March 17, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Table of contents indictator
2 participants