Skip to content

Commit

Permalink
change empty state to subdued
Browse files Browse the repository at this point in the history
  • Loading branch information
andreadelrio committed Oct 20, 2021
1 parent cb2cb9a commit bb710b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import { Story } from '@storybook/react';

const bar = '#c5ced8';
const panel = '#f7f9fa';
const background = '#e0e6ec';
const panel = '#ffff';
const background = '#FAFBFD';
const minHeight = 60;

const panelStyle = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export const ControlGroup = () => {
);

const [draggingId, setDraggingId] = useState<string | null>(null);
const draggingIndex = useMemo(
() => (draggingId ? idsInOrder.indexOf(draggingId) : -1),
[idsInOrder, draggingId]
);
const draggingIndex = useMemo(() => (draggingId ? idsInOrder.indexOf(draggingId) : -1), [
idsInOrder,
draggingId,
]);

const sensors = useSensors(
useSensor(PointerSensor),
Expand All @@ -104,6 +104,8 @@ export const ControlGroup = () => {
return (
<EuiPanel
borderRadius="m"
color={emptyState ? 'subdued' : undefined}
paddingSize={emptyState ? 'none' : 's'}
className={classNames('controlsWrapper', {
'controlsWrapper--empty': emptyState,
'controlsWrapper--twoLine': controlStyle === 'twoLine',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $controlMinWidth: $euiSize * 14;
text-align: center;
}
}
padding-right: $euiSizeL;
min-height: $euiSize * 4;
}

&--twoLine {
Expand Down

0 comments on commit bb710b5

Please sign in to comment.