Repository navigation
fix(ui): draw Edit Group's buttons as Desktop's standard BrandButtons with their hover and press states - #1193
Merged
Merged
Conversation
… with their hover and press states
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Desktop's
EditGroupModal(EditGroupBrowserWindow chunk, lines 209-240) draws Cancel and Save with its sharedBrandButton(gt, js:61338):size: "standard"withvariant: "muted"and"primary", andSavingButtonis a disabled primaryBrandButtonwith "Saving" and theSpinnerIcon6 px apart (.EditGroupModal-module__savingButton { gap: 6px }). A primaryBrandButtonbrightens tobrightness(1.05)on hover and every enabled one shrinks toscale(.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 useslogin::brand_button_withwithBrandLook::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