🐛 Fix the disabled invite button in the empty invitations state (#13193)

* 🐛 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

* 🐛 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
This commit is contained in:
Eva Marco 2026-11-23 09:28:36 +01:00 committed by GitHub
parent 5cd9080482
commit 15871f3de6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 0 deletions

View File

@ -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]))]))

View File

@ -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;

View File

@ -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);