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:
parent
9d4da24e6c
commit
27ff092e28
|
@ -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'
|
||||
|
|
|
@ -63,7 +63,7 @@ html {
|
|||
color: var(--link-color-rgb);
|
||||
|
||||
&:visited {
|
||||
color: var(--link-visited-color);
|
||||
color: var(--link-visited-color-rgb);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user