Skip to content

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

Portal: dark disabled buttons and role column width (#7004)

Anthony Stirlinga1b15e0570db
diff --git a/frontend/editor/src/core/ui/Button.css b/frontend/editor/src/core/ui/Button.css
index e80bf13222..6ec23ca9ea 100644
--- a/frontend/editor/src/core/ui/Button.css
+++ b/frontend/editor/src/core/ui/Button.css
@@ -61,11 +61,14 @@
background: var(--button-bg, transparent) !important;
}
+/* Disabled buttons in dark read as a muted surface (not a dimmed accent that
+ still looks clickable, and not an invisible transparent pill). Covers every
+ variant so a disabled primary and a disabled secondary look alike. */
+[data-theme="dark"] .sui-btn.mantine-Button-root:disabled:not([data-loading]),
[data-theme="dark"]
- .sui-btn--primary.mantine-Button-root:disabled:not([data-loading]),
-[data-theme="dark"]
- .sui-btn--primary.mantine-Button-root[data-disabled]:not([data-loading]) {
- background: var(--button-bg);
- color: var(--button-color);
- opacity: 0.55;
+ .sui-btn.mantine-Button-root[data-disabled]:not([data-loading]) {
+ background: var(--color-bg-muted);
+ color: var(--color-text-5);
+ border-color: transparent;
+ opacity: 1;
}
diff --git a/frontend/editor/src/portal/views/Users.css b/frontend/editor/src/portal/views/Users.css
index f351ebeaa3..dfaa9284a6 100644
--- a/frontend/editor/src/portal/views/Users.css
+++ b/frontend/editor/src/portal/views/Users.css
@@ -396,7 +396,7 @@
white-space: nowrap;
}
.portal-users__row-role {
- width: 148px;
+ width: 12.5rem;
flex-shrink: 0;
}