mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 21:04:48 +00:00
As a single example, if a `<kbd>` tag is wrapped by a `<a>` link, it doesn't inherit the link color: `[<kbd>❓ **Support**</kbd>](https://meta.discourse.org)` It's because the `<kbd>` tag has a `color: var(--primary);` CSS rule which seems superfluous. If we disable it, the `<kbd>` tag inherits all the normal colors (including the link color 👌). The direct `<kbd>` parent that assigns the text color is `<html>` (can't go higher!) which has an identical `color: var(--primary);`. WCAG palettes don't seem to assign specific colors in this context. It seems fairly safe to remove `color: var(--primary);` from `<kbd>` so it won't interfere anymore with its content.