mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:26:35 +08:00
4b9061ae3f
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. |
||
---|---|---|
.. | ||
common | ||
desktop | ||
mobile | ||
vendor | ||
admin.scss | ||
color_definitions.scss | ||
common.scss | ||
desktop_rtl.scss | ||
desktop.scss | ||
embed.scss | ||
ember_cli.scss | ||
mobile_rtl.scss | ||
mobile.scss | ||
publish.scss | ||
qunit-custom.scss | ||
qunit.scss | ||
wcag.scss | ||
wizard.scss |