diff --git a/src/components/helpers/jsonforms/layouts/VerticalLayout.test.tsx b/src/components/helpers/jsonforms/layouts/VerticalLayout.test.tsx index c2dbdc5b..6e660f00 100644 --- a/src/components/helpers/jsonforms/layouts/VerticalLayout.test.tsx +++ b/src/components/helpers/jsonforms/layouts/VerticalLayout.test.tsx @@ -55,4 +55,13 @@ describe("VerticalLayout", () => { expect(wrappers).toHaveLength(2); expect(wrappers[1]).toBeEmptyDOMElement(); }); + + test("greys labels of disabled inputs", () => { + renderForm(); + const css = Array.from(document.querySelectorAll("style")) + .map((style) => style.textContent) + .join(""); + expect(css).toMatch(/:has\(> \.MuiInputBase-root\.Mui-disabled\)/); + expect(css).toMatch(/:has\(input:disabled\)/); + }); }); diff --git a/src/components/helpers/jsonforms/layouts/VerticalLayout.tsx b/src/components/helpers/jsonforms/layouts/VerticalLayout.tsx index f065f284..96ee7874 100644 --- a/src/components/helpers/jsonforms/layouts/VerticalLayout.tsx +++ b/src/components/helpers/jsonforms/layouts/VerticalLayout.tsx @@ -26,8 +26,13 @@ const VerticalLayoutComponent = ({