Why is the TOC text black when the style says it should be blue?

Connor Shore 50 Reputation points
2025-03-19T14:24:31.12+00:00

Hello, I have a question about this simplified document:

https://windwardstudios.box.com/s/8cr6e5gnqbfp87h62lh3ymogxuw7yn9t

If you place your cursor on "Tester" in the table of contents, if you click on the styles you will notice the style is set to "Hyperlink". When you check the styles.xml for the Hyperlink style, you will notice it has the color set to blue. However, in the document the text renders as black. Why is that? Is there some property that overrides the color in this case or does a different style get applied?

Any help is appreciated!

Thank you,

Connor

Office Open Specifications
Office Open Specifications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Open Specifications: Technical documents for protocols, computer languages, standards support, and data portability. The goal with Open Specifications is to help developers open new opportunities to interoperate with Windows, SQL, Office, and SharePoint.
146 questions
0 comments No comments
{count} votes

Accepted answer
  1. John Korchok 5,956 Reputation points
    2025-03-19T17:07:35.88+00:00

    TOCs use multiple styles. The hyperlink character style normally does not display. Instead it is over-ridden by the TOC 1, TOC 2, TOC 3, etc. paragraph styles that format the different levels of the TOC.

    If you want the TOC to display with blue text, format the TOC styles with that font color.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.