Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Fix corner radius on Mantine checkboxes in Processor (#7537)

James Bruntona14eec94ec13
diff --git a/frontend/editor/src/portal/theme/mantineTheme.ts b/frontend/editor/src/portal/theme/mantineTheme.ts
index 7108a90073..e371b4aeb8 100644
--- a/frontend/editor/src/portal/theme/mantineTheme.ts
+++ b/frontend/editor/src/portal/theme/mantineTheme.ts
@@ -163,6 +163,10 @@ export const mantineTheme = createTheme({
CloseButton: { defaultProps: { "aria-label": "Close" } },
Modal: { defaultProps: { closeButtonProps: { "aria-label": "Close" } } },
Drawer: { defaultProps: { closeButtonProps: { "aria-label": "Close" } } },
+ // The portal's md default radius (8px) is right for cards and buttons but
+ // rounds a 20px checkbox into a circle. Pin it to the smaller radius the
+ // editor's checkboxes use so the box reads as a checkbox.
+ Checkbox: { styles: { input: { borderRadius: "var(--radius-sm)" } } },
},
fontFamily: "var(--font-sans)",
fontFamilyMonospace: "var(--font-mono)",