mirror of
https://github.com/lingble/twenty.git
synced 2025-10-30 04:12:28 +00:00
Created a temporary background transparent blue color for checkboxes (#8363)
Created a temporary background transparent blue color for checkboxes Co-authored-by: Weiko <corentin@twenty.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import styled from '@emotion/styled';
|
import styled from '@emotion/styled';
|
||||||
import { IconCheck, IconMinus } from '@ui/display';
|
|
||||||
|
import { IconCheck, IconMinus } from '@ui/display/icon/components/TablerIcons';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
export enum CheckboxVariant {
|
export enum CheckboxVariant {
|
||||||
@@ -62,7 +63,7 @@ const StyledInputContainer = styled.div<InputProps>`
|
|||||||
return `&:hover{
|
return `&:hover{
|
||||||
background-color: ${
|
background-color: ${
|
||||||
indeterminate || isChecked
|
indeterminate || isChecked
|
||||||
? theme.color.blue10
|
? theme.background.transparent.blue
|
||||||
: theme.background.transparent.light
|
: theme.background.transparent.light
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ export const BACKGROUND_DARK = {
|
|||||||
light: RGBA(GRAY_SCALE.gray0, 0.06),
|
light: RGBA(GRAY_SCALE.gray0, 0.06),
|
||||||
lighter: RGBA(GRAY_SCALE.gray0, 0.03),
|
lighter: RGBA(GRAY_SCALE.gray0, 0.03),
|
||||||
danger: RGBA(COLOR.red, 0.08),
|
danger: RGBA(COLOR.red, 0.08),
|
||||||
|
blue: RGBA(COLOR.blue, 0.2),
|
||||||
},
|
},
|
||||||
overlayPrimary: RGBA(GRAY_SCALE.gray80, 0.8),
|
overlayPrimary: RGBA(GRAY_SCALE.gray80, 0.8),
|
||||||
overlaySecondary: RGBA(GRAY_SCALE.gray80, 0.4),
|
overlaySecondary: RGBA(GRAY_SCALE.gray80, 0.4),
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ export const BACKGROUND_LIGHT = {
|
|||||||
light: RGBA(GRAY_SCALE.gray100, 0.04),
|
light: RGBA(GRAY_SCALE.gray100, 0.04),
|
||||||
lighter: RGBA(GRAY_SCALE.gray100, 0.02),
|
lighter: RGBA(GRAY_SCALE.gray100, 0.02),
|
||||||
danger: RGBA(COLOR.red, 0.08),
|
danger: RGBA(COLOR.red, 0.08),
|
||||||
|
blue: RGBA(COLOR.blue, 0.08),
|
||||||
},
|
},
|
||||||
overlayPrimary: RGBA(GRAY_SCALE.gray80, 0.8),
|
overlayPrimary: RGBA(GRAY_SCALE.gray80, 0.8),
|
||||||
overlaySecondary: RGBA(GRAY_SCALE.gray80, 0.4),
|
overlaySecondary: RGBA(GRAY_SCALE.gray80, 0.4),
|
||||||
|
|||||||
Reference in New Issue
Block a user