Heed review comments

This commit is contained in:
René Pfeuffer
2020-06-24 17:05:22 +02:00
parent c5a2d04789
commit 0623f039cc
2 changed files with 2 additions and 14 deletions

View File

@@ -25,21 +25,13 @@ import React, { FC } from "react";
import Icon from "../Icon"; import Icon from "../Icon";
type Props = { type Props = {
onChange?: (value: boolean) => void;
checked: boolean; checked: boolean;
indeterminate?: boolean; indeterminate?: boolean;
disabled?: boolean; disabled?: boolean;
label?: string; label?: string;
}; };
const TriStateCheckbox: FC<Props> = ({ onChange, checked, indeterminate, disabled, label }) => { const TriStateCheckbox: FC<Props> = ({ checked, indeterminate, disabled, label }) => {
const onCheckboxChange = () => {
if (onChange) {
console.log("clickediclick");
onChange(!checked);
}
};
let icon; let icon;
if (indeterminate) { if (indeterminate) {
icon = "minus-square"; icon = "minus-square";
@@ -60,7 +52,7 @@ const TriStateCheckbox: FC<Props> = ({ onChange, checked, indeterminate, disable
if (disabled) { if (disabled) {
color = "grey-light"; color = "grey-light";
} else if (checked || indeterminate) { } else if (checked || indeterminate) {
color = "blue"; color = "link";
} else { } else {
color = "black"; color = "black";
} }

View File

@@ -160,10 +160,6 @@ $danger-25: scale-color($danger, $lightness: 75%);
color: $blue-light !important; color: $blue-light !important;
} }
.has-text-blue {
color: $blue !important;
}
// border and background colors // border and background colors
.has-background-dark-75 { .has-background-dark-75 {
background-color: $dark-75; background-color: $dark-75;