the-events-calendar / the-events-calendar-category-colors

Plugin add-on for The Events Calendar to colorize categories
https://wordpress.org/plugins/the-events-calendar-category-colors
44 stars 19 forks source link

Category text colours are black for visited events. #133

Open adampatterson opened 3 years ago

adampatterson commented 3 years ago

I have removed all of my themes CSS when confirming this.

If I create a category with white text, the colours show as expected, once I visit the event the link colour changes to black.

There is some CSS

 .tribe-common article.tribe_events_cat-general h3 a,
 .tribe-common article.tribe_events_cat-general h3 a:link,

Adding

.tribe-common article.tribe_events_cat-general h3 a:visited,

will fix this.

adampatterson commented 3 years ago

I set a proposed change, Would love to see this merged in.

Let me know if there are any other areas that might need to fix and I can make that change.

afragen commented 3 years ago

Do you have a calendar URL I can see this on?

adampatterson commented 3 years ago

@afragen yes, this site is a work in progress.

https://wps.bg.bubbleupsandbox.ca/calendar/

Look for Terry Fox

afragen commented 3 years ago

I see what you mean. Much less than ideal.

adampatterson commented 3 years ago

Lol, I did a quick test by modifying my local plugin to confirm that my PR works.

I did see some other areas where the visited link might be affected in the same way but I did not encounter those yet since my theme is custom.

afragen commented 3 years ago

I just want to check an make sure something similar isn't needed elsewhere, but will merge now.

adampatterson commented 3 years ago

Thanks!

hjed commented 2 years ago

Hey so this seems to be happening again in the most recent version of the Event Calendar plugin. Looks like event calendar changed their CSS.

Example site: https://sydneynorthscouts.com/events/

This looks like the guilty css:

image

nooQsoftware commented 7 months ago

Has there been a fix for this? Still seeing this behaviour. Is there css to override it happening? Want to keep white text on dark backgrounds, even if visited or not. As get black text on dark background after clicked once.