Spotlight and friends' dismiss button lacks padding
Categories
(Firefox :: Messaging System, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox111 | --- | fixed |
People
(Reporter: aminomancer, Assigned: rchan)
References
(Blocks 3 open bugs)
Details
Attachments
(2 files, 1 obsolete file)
Compared to the prototype, our dismiss buttons are missing padding. This also seems to indicate that they were intended to be 12px, though I suppose that seems too small, so maybe the designer was just working with a different scaling factor. Basically, the button is 32px and the X icon inside it is 12px. So you've got a 12px icon with 10px padding.
Assignee | ||
Updated•2 years ago
|
Reporter | ||
Comment 1•2 years ago
|
||
Not sure if we want to make the icon 12px, that seems too small. Maybe we just want proportional padding. So if the padding is 10px for a 12px icon, then I guess we'd want 12.5px padding for our 15px icon. Probably wise to round that either down or up, whichever looks better
Assignee | ||
Comment 2•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Reporter | ||
Comment 4•2 years ago
•
|
||
Hey Gabrielle! This isn't super urgent or anything, but we have a question about the size of the x icon in the dismiss button. In the figma prototype, the icon dimensions are 12px by 12px (with 10px padding). But in firefox, when we do a 12px icon, it comes out looking much smaller relative to the rest of the surface. I guess the device pixel ratio differs between figma and firefox somehow, so that 12px in figma appears larger than 12px in firefox.
The dismiss button we currently have on tree (based on the legacy spotlight design) is 15px. And that looks correct and proportional to the split multistage spotlight design. So, we were thinking we'd do a 15px icon with 12.5px padding (aspect ratio 12.5:15 is proportional to 10:12) which visually looks closest to the figma prototype to our eyes. But I figured we should ask before landing, to inquire whether there's anything special about the exact 12px value or if we're just aiming for visual fidelity. Thanks!
Updated•2 years ago
|
Reporter | ||
Comment 5•2 years ago
|
||
The issue with the icon size actually seems to be that the designer was working with the original "X" vector path, and made its dimensions 12px, but on tree we have a close button icon that's 14px in a 16px artbox. So the engineer chose 15px in order to compensate for the additional padding. At this point I think it makes sense to just clamp the button to 32px and make the "X" icon (a background image) 15px, with no button padding. If we want to make it perfectly mirror the Figma prototype, we could add a new "X" icon to the tree that is 12px in a 12px viewbox, and use that instead.
Comment 6•2 years ago
|
||
(In reply to Shane Hughes [:aminomancer] from comment #5)
The issue with the icon size actually seems to be that the designer was working with the original "X" vector path, and made its dimensions 12px, but on tree we have a close button icon that's 14px in a 16px artbox. So the engineer chose 15px in order to compensate for the additional padding. At this point I think it makes sense to just clamp the button to 32px and make the "X" icon (a background image) 15px, with no button padding. If we want to make it perfectly mirror the Figma prototype, we could add a new "X" icon to the tree that is 12px in a 12px viewbox, and use that instead.
Love this solution 🙏🏼 Jules from design systems is also looking into how we can fix this for future experiments.
Assignee | ||
Comment 7•2 years ago
|
||
Comment 9•2 years ago
|
||
bugherder |
Description
•