• Resolved bellco12

    (@bellco12)


    Hi,
    Since I set the body background on one page of the website to black, I am getting a contrast error for my skip link on this particular page.
    How can I customize the skip link of the plugin so to not get this error anymore.
    Thanks.

    • This topic was modified 4 years, 4 months ago by bellco12.
    • This topic was modified 4 years, 4 months ago by bellco12.
    • This topic was modified 4 years, 4 months ago by bellco12.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Can you share a link?

    Thread Starter bellco12

    (@bellco12)

    I made a testing site, where you can see the problem: scella.net
    With the Wave tool, I get the contrast error for the Skip Link, because I set the body background color to black. On the actual site, which I can’t have live yet, I have only 2 pages with this problem, and the other pages are not using transparent header, thus I have a white background color and therefore no error message.
    How can I fix this just on 2 these two pages. I need to keep the black background color, otherwise I get a contrast error for the menu items.
    Thank you for looking into this.

    Plugin Author Joe Dolson

    (@joedolson)

    Technically, this is a false positive, since it’s a contrast error on an element that is not visible, and which changes color when it becomes visible.

    The simplest solution for you would be to declare a background color & a color for the skip link while it’s hidden, e.g. #skiplinks a { background: #fff; color: #007; }

    You’d need to declare both, because the default color your theme defines for links is also a contrast violation on a white background.

    Thread Starter bellco12

    (@bellco12)

    Thank you!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Skip To Content – Color Contrast Error’ is closed to new replies.