Fix GH-955 and GH-936 (#971)

* Fix some major bugs BOSS BOSS

* fix variable name

* Fix RGB and Hex Mismatch
This commit is contained in:
Hossein 2021-08-13 10:51:18 -04:00 committed by GitHub
parent 9d4da24e6c
commit 27ff092e28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@
// See LICENSE.txt for license information.
import React, {useState, useRef, useMemo} from 'react'
import SimpleMDE from 'react-simplemde-editor'
import 'easymde/dist/easymde.min.css'
import {Utils} from '../utils'
import './markdownEditor.scss'

View File

@ -63,7 +63,7 @@ html {
color: var(--link-color-rgb);
&:visited {
color: var(--link-visited-color);
color: var(--link-visited-color-rgb);
}
&:hover {

View File

@ -176,7 +176,7 @@ export function setMattermostTheme(theme: any): Theme {
document.documentElement.style.setProperty('--button-color-rgb', color(theme.buttonColor).rgb().array().join(', '))
document.documentElement.style.setProperty('--sidebar-bg-rgb', color(theme.sidebarBg).rgb().array().join(', '))
document.documentElement.style.setProperty('--sidebar-text-rgb', color(theme.sidebarText).rgb().array().join(', '))
document.documentElement.style.setProperty('--link-color-rgb', color(theme.linkColor).rgb().array().join(', '))
document.documentElement.style.setProperty('--link-color-rgb', theme.linkColor)
document.documentElement.style.setProperty('--sidebar-text-active-border', color(theme.sidebarTextActiveBorder).rgb().array().join(', '))
return setTheme({
@ -188,7 +188,7 @@ export function setMattermostTheme(theme: any): Theme {
sidebarBg: color(theme.sidebarBg).rgb().array().join(', '),
sidebarFg: color(theme.sidebarColor || '#ffffff').rgb().array().join(', '),
sidebarTextActiveBorder: color(theme.sidebarTextActiveBorder).rgb().array().join(', '),
link: color(theme.linkColor).rgb().array().join(', '),
link: theme.linkColor,
})
}