MCPcopy Create free account
hub / github.com/StevenLyt/mapf-visualizer / errorStyles

Function errorStyles

src/components/MKInput/MKInputRoot.js:28–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27 // styles for the input with error={true}
28 const errorStyles = () => ({
29 backgroundImage:
30 "url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23F44335' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23F44335' stroke='none'/%3E%3C/svg%3E\")",
31 backgroundRepeat: "no-repeat",
32 backgroundPosition: `right ${pxToRem(12)} center`,
33 backgroundSize: `${pxToRem(16)} ${pxToRem(16)}`,
34
35 "& .Mui-focused": {
36 "& .MuiOutlinedInput-notchedOutline, &:after": {
37 borderColor: colorError.main,
38 },
39 },
40
41 "& .MuiInputLabel-root.Mui-focused": {
42 color: colorError.main,
43 },
44 });
45
46 // styles for the input with success={true}
47 const successStyles = () => ({

Callers 1

MKInputRoot.jsFile · 0.85

Calls 1

pxToRemFunction · 0.85

Tested by

no test coverage detected