Background-color not working for print TOC entries

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
RiverMonster
Sr. Propeller Head
Posts: 148
Joined: Fri May 09, 2008 8:51 am
Location: Alicante, Spain
Contact:

Background-color not working for print TOC entries

Post by RiverMonster »

Hi,

In my stylesheet I have the following:

Code: Select all

p.TOC1
{
  color: blue;  
  background-color: red;
}
After making these settings the p.TOC1 style in my PDF turns blue, as expected. However, the background behind the text remains white when I expected it to turn red. Is background-color not supported in a PDF TOC style? Or is there a bug? Or I am doing something wrong?

Thanks,

Adrian
Nita Beck
Senior Propellus Maximus
Posts: 3669
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Background-color not working for print TOC entries

Post by Nita Beck »

You haven't said what medium you've set the background color in. Check p.TOC1 in the medium you use for PDF and see if a different background color is being set there.
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
RiverMonster
Sr. Propeller Head
Posts: 148
Joined: Fri May 09, 2008 8:51 am
Location: Alicante, Spain
Contact:

Re: Background-color not working for print TOC entries

Post by RiverMonster »

Nita Beck wrote:You haven't said what medium you've set the background color in. Check p.TOC1 in the medium you use for PDF and see if a different background color is being set there.
Thanks Nita. I was using the print medium in my stylesheet and in my target settings. I checked that the declaration block only appears once in my stylesheet. I tested putting the declaration block in the default medium instead and assigning default medium in my target but the result is the same: if I change the value for the "color" declaration the change does propagate to the PDF; if I change the value for the "background-color" declaration it doesn't.
Nita Beck
Senior Propellus Maximus
Posts: 3669
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Background-color not working for print TOC entries

Post by Nita Beck »

When I get in the office later, I'll see if I can reproduce this. That will at least point to its being a bug and you can report it.
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
RiverMonster
Sr. Propeller Head
Posts: 148
Joined: Fri May 09, 2008 8:51 am
Location: Alicante, Spain
Contact:

Re: Background-color not working for print TOC entries

Post by RiverMonster »

I tried creating a brand new project using the wizard. Same result so I have submitted a bug.

Thanks

Adrian
Nita Beck
Senior Propellus Maximus
Posts: 3669
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Background-color not working for print TOC entries

Post by Nita Beck »

I tried, too, but no luck. One thing I tried was to use the hex code for red instead of "red", but that made no difference. :(
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
RiverMonster
Sr. Propeller Head
Posts: 148
Joined: Fri May 09, 2008 8:51 am
Location: Alicante, Spain
Contact:

Re: Background-color not working for print TOC entries

Post by RiverMonster »

Thanks for testing this Nita. MadCap have confirmed it is a bug.

Cheers

Adrian
anthonyjaycorman
Jr. Propeller Head
Posts: 6
Joined: Wed Apr 05, 2017 4:08 pm

Re: Background-color not working for print TOC entries

Post by anthonyjaycorman »

Just hit this - changed text color for p.TOCn has no effect in resulting PDF. Any workarounds?
Jim Casey
Jr. Propeller Head
Posts: 8
Joined: Wed Jul 13, 2022 11:31 am

Re: Background-color not working for print TOC entries

Post by Jim Casey »

In Flare 14/2018 it's still a problem with no workaround that I can find. :(
Post Reply