From 15871f3de6652937941505880ee20d0552a1af75 Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Mon, 23 Nov 2026 09:28:36 +0100 Subject: [PATCH] :bug: Fix the disabled invite button in the empty invitations state (#13193) * :bug: Center the disabled invite button in the empty invitations state The disabled button sits inside a tooltip trigger, a fit-content grid that the text-align of the empty state does not center. Center the trigger with auto inline margins. Closes #13173 AI-assisted-by: claude-opus-5-5 * :bug: Make the disabled primary button label readable in the light theme In the light theme the label of a disabled primary button used the background secondary color on the muted accent background, so both were almost the same. Use the tertiary accent for that label in the light theme only, as design asked. The dark theme keeps its colors. Closes #13171 AI-assisted-by: claude-opus-5-5 --- frontend/src/app/main/ui/dashboard/team.cljs | 1 + frontend/src/app/main/ui/dashboard/team.scss | 6 ++++++ frontend/src/app/main/ui/ds/buttons/_buttons.scss | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/frontend/src/app/main/ui/dashboard/team.cljs b/frontend/src/app/main/ui/dashboard/team.cljs index 53aad60ced..b3591ab226 100644 --- a/frontend/src/app/main/ui/dashboard/team.cljs +++ b/frontend/src/app/main/ui/dashboard/team.cljs @@ -876,6 +876,7 @@ invite-button [:> tooltip* {:content (tr "dashboard.invite-profile-disabled") :id "empty-invite-member-disabled-tooltip" + :class (stl/css :empty-invitations-tooltip) :tab-index 0} invite-button]))])) diff --git a/frontend/src/app/main/ui/dashboard/team.scss b/frontend/src/app/main/ui/dashboard/team.scss index 4966b8ab87..415726cc93 100644 --- a/frontend/src/app/main/ui/dashboard/team.scss +++ b/frontend/src/app/main/ui/dashboard/team.scss @@ -415,6 +415,12 @@ margin-block-start: var(--sp-l); } +// The tooltip trigger is a fit-content grid, which the text-align of the +// empty state does not center. +.empty-invitations-tooltip { + margin-inline: auto; +} + .title-field-status { position: relative; cursor: default; diff --git a/frontend/src/app/main/ui/ds/buttons/_buttons.scss b/frontend/src/app/main/ui/ds/buttons/_buttons.scss index 27bd625edf..dea54b474f 100644 --- a/frontend/src/app/main/ui/ds/buttons/_buttons.scss +++ b/frontend/src/app/main/ui/ds/buttons/_buttons.scss @@ -70,6 +70,11 @@ --button-focus-inner-ring-color: var(--color-background-secondary); --button-focus-outer-ring-color: var(--color-accent-primary); + // The light theme muted background is too pale for a light label. + :global(.light) & { + --button-disabled-fg-color: var(--color-accent-tertiary); + } + &:active, &[aria-pressed="true"] { box-shadow: inset 0 0 #{px2rem(10)} #{px2rem(2)} rgb(0 0 0 / 0.2);