build(deps): update src/components/Checkbox/index.js, src/components/Checkbox/index.scss and yarn.lock

master
mahdi 3 years ago
parent c8f37c1bf8
commit 2783de1eb2
  1. 11
      src/components/Checkbox/index.js
  2. 3
      src/components/Checkbox/index.scss
  3. 21849
      yarn.lock

@ -1,10 +1,10 @@
import React from "react"; import React from "react";
import './index.scss'; import "./index.scss";
export default function Checkbox(props) { export default function Checkbox(props) {
return ( return (
<div> <div>
<svg className="checkbox-symbol"> <svg className="checkbox-symbol w-0 h-0 absolute">
<symbol id="check" viewBox="0 0 12 10"> <symbol id="check" viewBox="0 0 12 10">
<polyline <polyline
points="1.5 6 4.5 9 10.5 1" points="1.5 6 4.5 9 10.5 1"
@ -16,7 +16,12 @@ export default function Checkbox(props) {
</svg> </svg>
<div className="checkbox-container"> <div className="checkbox-container">
<input className="checkbox-input" id="apples" type="checkbox" checked={props.checked} /> <input
className="checkbox-input"
id="apples"
type="checkbox"
checked={props.checked}
/>
<label className="checkbox" htmlFor="apples"> <label className="checkbox" htmlFor="apples">
<span> <span>
<svg width="12px" height="10px"> <svg width="12px" height="10px">

@ -1,7 +1,4 @@
.checkbox-symbol { .checkbox-symbol {
position: absolute;
width: 0;
height: 0;
pointer-events: none; pointer-events: none;
user-select: none; user-select: none;
} }

21849
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save