mirror of
https://github.com/penpot/penpot.git
synced 2026-11-26 21:00:32 +00:00
🐛 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:
parent
5cd9080482
commit
15871f3de6
@ -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]))]))
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user