ClickHouse/click-ui

Option to disable "visited" decoration for the Link component without extra styles

Closed this issue · 2 comments

On some pages, it is necessary to keep all links "unvisited" to increase the visibility/readability of the link text.

image
See that the "examples" link is not very distinguishable from the rest of the text. Ideally, we should be able to prevent that without adding an extra style for the Link component.

In addition, currently, it's inconsistent: after the first click, it is "visited"; after the second - it is "not visited" again (at least on the latest FF).

Yeah there's an issue I've been working through where the sql console has color:inherit set globally which overrides the visited state. I've been delaying doing it as it creates visual issues when there isn't specifically a :visited state set. The Click UI side should have been addressed by this PR #264, but I still need to remove the color:inherit (line 11, `globalStyles.css).

This has been fixed by a couple of separate PRs so closing.

CleanShot 2024-01-04 at 07 27 32@2x