Merge branch 'dev' into staging
This commit is contained in:
commit
58295c0ef4
@ -27,11 +27,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
opacity: var(--opacity-disabled, 0.3);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
accent-color: var(--select-option-selected-default-background);
|
||||
cursor: pointer;
|
||||
@ -56,10 +51,12 @@
|
||||
border: 2px solid var(--select-option-unselected-pressed-border, #3e474e);
|
||||
accent-color: var(--select-option-selected-pressed-background);
|
||||
}
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
&.disabled {
|
||||
pointer-events: none;
|
||||
cursor: not-allowed;
|
||||
opacity: var(--opacity-disabled, 0.3);
|
||||
}
|
||||
|
||||
// input[type="checkbox"]::before {
|
||||
|
@ -45,7 +45,6 @@ export default class CheckBox extends React.Component<IProps, IState> {
|
||||
value={this.props.option.value as string}
|
||||
onChange={this.onChange}
|
||||
checked={this.state.checked}
|
||||
disabled={this.props.disabled}
|
||||
/>
|
||||
<div className={classes["content"]}>
|
||||
{this.props.option.label && (
|
||||
|
@ -28,10 +28,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
opacity: var(--opacity-disabled, 0.3);
|
||||
}
|
||||
|
||||
input[type="radio"] {
|
||||
cursor: pointer;
|
||||
width: 20px;
|
||||
@ -60,6 +56,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
pointer-events: none;
|
||||
cursor: not-allowed;
|
||||
opacity: var(--opacity-disabled, 0.3);
|
||||
}
|
||||
|
||||
// input[type="radio"]::before {
|
||||
// content: "";
|
||||
// width: 11px;
|
||||
|
@ -32,7 +32,6 @@ export default class RadioBox extends React.Component<IProps> {
|
||||
defaultChecked={this.props.defaultChecked}
|
||||
onChange={this.props.onChange}
|
||||
value={this.props.value}
|
||||
disabled={this.props.disabled}
|
||||
/>
|
||||
<div className={classes["content"]}>
|
||||
{this.props.label && (
|
||||
|
@ -114,6 +114,16 @@ export default function DesignSystem() {
|
||||
toolTip="test"
|
||||
disabled={true}
|
||||
/>
|
||||
<CheckboxesInputElement
|
||||
option={{
|
||||
label: "Checked & Disabled",
|
||||
value: "all",
|
||||
description: "Description",
|
||||
}}
|
||||
toolTip="test"
|
||||
checked={true}
|
||||
disabled={true}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className={classes["rows"]}>
|
||||
@ -134,6 +144,15 @@ export default function DesignSystem() {
|
||||
toolTip="test"
|
||||
disabled={true}
|
||||
/>
|
||||
<RadioBox
|
||||
name="document"
|
||||
value={"new client"}
|
||||
description="Test"
|
||||
label="Créer un document"
|
||||
toolTip="test"
|
||||
checked={true}
|
||||
disabled={true}
|
||||
/>
|
||||
</div>
|
||||
<div className={classes["components"]}>
|
||||
<Typography typo={ETypo.TEXT_LG_BOLD}>Toggle</Typography>
|
||||
|
Loading…
x
Reference in New Issue
Block a user