Verticle sidebar color fix, Bugfix for #4829 (#5539)

* 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:
Arpit 2023-02-23 12:07:35 +05:30 committed by GitHub
parent f97067e303
commit f5ebb86203
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -4414,7 +4414,7 @@ export const widgets = [
events: [],
styles: {
visibility: { value: '{{true}}' },
dividerColor: { value: '' },
dividerColor: { value: '#000000' },
},
},
},