fix: force accent contrast color on environment variables - resolved #2217

This commit is contained in:
liyasthomas
2022-03-31 14:36:00 +05:30
parent 5a1e4bbcbc
commit c73c6f216a
2 changed files with 9 additions and 2 deletions

View File

@@ -19,10 +19,11 @@ import {
const HOPP_ENVIRONMENT_REGEX = /(<<\w+>>)/g
const HOPP_ENV_HIGHLIGHT =
"cursor-help transition rounded px-1 focus:outline-none mx-0.5"
"cursor-help transition rounded px-1 focus:outline-none mx-0.5 env-highlight"
const HOPP_ENV_HIGHLIGHT_FOUND =
"bg-accentDark text-accentContrast hover:bg-accent"
const HOPP_ENV_HIGHLIGHT_NOT_FOUND = "bg-red-400 text-red-50 hover:bg-red-600"
const HOPP_ENV_HIGHLIGHT_NOT_FOUND =
"bg-red-500 text-accentContrast hover:bg-red-600"
const cursorTooltipField = (aggregateEnvs: AggregateEnvironment[]) =>
hoverTooltip(