mirror of
https://github.com/mue/mue.git
synced 2026-07-18 06:24:17 +02:00
style(checkbox): Match mui design
Co-authored-by: David Ralph <me@davidcralph.co.uk>
This commit is contained in:
@@ -1,18 +1,3 @@
|
||||
.updateChangelog {
|
||||
max-width: 75%;
|
||||
margin-top: 15px;
|
||||
white-space: pre-wrap;
|
||||
font-size: 18px;
|
||||
|
||||
a {
|
||||
color: var(--modal-link);
|
||||
|
||||
&:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.changelogtab {
|
||||
.mainTitle {
|
||||
margin: 0 !important;
|
||||
@@ -21,4 +6,10 @@
|
||||
img {
|
||||
max-width: 95%;
|
||||
}
|
||||
|
||||
a {
|
||||
&:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import variables from 'config/variables';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { Checkbox as CheckboxUI, Field, Label } from '@headlessui/react';
|
||||
import { MdCheckBox } from "react-icons/md";
|
||||
import EventBus from 'utils/eventbus';
|
||||
|
||||
const Checkbox = (props) => {
|
||||
@@ -36,25 +37,14 @@ const Checkbox = (props) => {
|
||||
};
|
||||
|
||||
return (
|
||||
<Field className="flex flex-row-reverse items-center gap-2">
|
||||
<Field className="w-[300px] h-9 my-1 flex flex-row-reverse items-center gap-2 justify-between text-left">
|
||||
<CheckboxUI
|
||||
checked={checked}
|
||||
onChange={handleChange}
|
||||
disabled={props.disabled || false}
|
||||
className="group block size-4 rounded border bg-white data-[checked]:bg-blue-500"
|
||||
className="border border-[#484848] bg-white/5 group size-4 rounded data-[checked]:bg-neutral-900 cursor-pointer grid place-content-center"
|
||||
>
|
||||
<svg
|
||||
className="stroke-white opacity-0 group-data-[checked]:opacity-100"
|
||||
viewBox="0 0 14 14"
|
||||
fill="none"
|
||||
>
|
||||
<path
|
||||
d="M3 8L6 11L11 3.5"
|
||||
strokeWidth={2}
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
</svg>
|
||||
<MdCheckBox className="stroke-white opacity-0 group-data-[checked]:opacity-100 size-6" />
|
||||
</CheckboxUI>
|
||||
<Label>{props.text}</Label>
|
||||
</Field>
|
||||
|
||||
Reference in New Issue
Block a user