Bugfix/table cell color fix (#870)

* Table widget: data on inspector is readable in dark mode

* table body colors

* removed repeated properties in the widget ispector or table widget
This commit is contained in:
Arpit 2021-09-29 22:18:08 +05:30 committed by GitHub
parent 51d6537b02
commit fa2c84f3d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 6 deletions

View file

@ -31,7 +31,6 @@ export const Datepicker = function Datepicker({ value, onChange, readOnly, isTim
disabled: !readOnly,
};
const onDatepickerClose = () => {
onChange(date);
};

View file

@ -317,7 +317,7 @@ export function Table({
const textColor = resolveReferences(column.textColor, currentState, { cellValue });
const cellStyles = {
color: textColor === undefined ? (darkMode === true ? '#fff' : 'black') : textColor,
color: textColor ?? '',
};
if (column.isEditable) {

View file

@ -17,7 +17,6 @@ export const EventManager = ({
excludeEvents,
popOverCallback,
popoverPlacement,
darkMode,
}) => {
const [focusedEventIndex, setFocusedEventIndex] = useState(null);
@ -258,9 +257,7 @@ export const EventManager = ({
}}
>
<div className={rowClassName} role="button">
<div className="col">
{componentMeta.events[event.eventId]['displayName']}
</div>
<div className="col">{componentMeta.events[event.eventId]['displayName']}</div>
<div className="col">
<small className="event-action">{actionMeta.name}</small>
</div>