Skip to content

Commit

Permalink
Bug fixed : Button Group widget is not consistent with the dark theme (
Browse files Browse the repository at this point in the history
  • Loading branch information
manishkushare authored Sep 12, 2022
1 parent 76461d9 commit 59e0f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/Editor/Components/ButtonGroup.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react';

export const ButtonGroup = function Button({ height, properties, styles, fireEvent, setExposedVariable }) {
export const ButtonGroup = function Button({ height, properties, styles, fireEvent, setExposedVariable, darkMode }) {
const { values, labels, label, defaultSelected, multiSelection } = properties;
const {
backgroundColor,
Expand Down Expand Up @@ -61,7 +61,7 @@ export const ButtonGroup = function Button({ height, properties, styles, fireEve
};
return (
<div className="widget-buttongroup" style={{ height }}>
{label && <p className="widget-buttongroup-label">{label}</p>}
{label && <p className={`widget-buttongroup-label ${darkMode && 'text-light'}`}>{label}</p>}
<div>
{data?.map((item, index) => (
<button
Expand Down

0 comments on commit 59e0f31

Please sign in to comment.