Skip to content

fix(ui): draw Edit Group's buttons as Desktop's standard BrandButtons with their hover and press states - #1193

Merged
pythoncrazy merged 1 commit into
mainfrom
fix/edit-group-brand-buttons
Nov 24, 2026
Merged

pythoncrazy merged 1 commit into
mainfrom
fix/edit-group-brand-buttons

Conversation

@pythoncrazy

Copy link
Copy Markdown
Owner

Desktop's EditGroupModal (EditGroupBrowserWindow chunk, lines 209-240) draws Cancel and Save with its shared BrandButton (gt, js:61338): size: "standard" with variant: "muted" and "primary", and SavingButton is a disabled primary BrandButton with "Saving" and the SpinnerIcon 6 px apart (.EditGroupModal-module__savingButton { gap: 6px }). A primary BrandButton brightens to brightness(1.05) on hover and every enabled one shrinks to scale(.98) while pressed (css:1205-1210).

beeper-rs drew a local closure in view_edit_group: no hover or press state, no 1 px border, a 20 px line (40 px high), and "Saving" 4 px before the spinner. It now uses login::brand_button_with with BrandLook::STANDARD, like Change Email, so the states come from the shared helper. The label is 14 px on the 1.15 line that normalize.css gives a button (the real-DOM dumps measure buttons at 1.15 too), so the buttons are 38.1 px high like Desktop's (10 px padding and the 1 px border on each side).

Test: fuzz::edit_group_buttons_are_brand_buttons_like_desktop (size 136.4 by 38.1, 0.98 while pressed, 1.05 brighter on hover; fails on main with a 40 px button and no states). Checked on wgpu (lavapipe) and tiny-skia.

Seen, not changed: Change Email's standard buttons use the 14 px label on iced's default line (40.2 px high), not 1.15.

🤖 Generated with Claude Code

@pythoncrazy
pythoncrazy merged commit a601193 into main Nov 24, 2026
2 checks passed
@pythoncrazy
pythoncrazy deleted the fix/edit-group-brand-buttons branch November 24, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant