mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
* Verticle sidebar color fix, Bugfix for #4829 * Added default color to vertical divider * Fixes dark mode --------- Co-authored-by: Ishan Parlikar <iparlika@emich.edu> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
This commit is contained in:
parent
f97067e303
commit
f5ebb86203
2 changed files with 4 additions and 3 deletions
|
|
@ -1,8 +1,9 @@
|
|||
import React from 'react';
|
||||
|
||||
export const VerticalDivider = function Divider({ styles, height, width, dataCy }) {
|
||||
export const VerticalDivider = function Divider({ styles, height, width, dataCy, darkMode }) {
|
||||
const { visibility, dividerColor } = styles;
|
||||
const color = dividerColor ?? '#E7E8EA';
|
||||
const color =
|
||||
dividerColor === '' || ['#000', '#000000'].includes(dividerColor) ? (darkMode ? '#fff' : '#000') : dividerColor;
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -4414,7 +4414,7 @@ export const widgets = [
|
|||
events: [],
|
||||
styles: {
|
||||
visibility: { value: '{{true}}' },
|
||||
dividerColor: { value: '' },
|
||||
dividerColor: { value: '#000000' },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue