Change Feature Callout's overlap of parent elements to 15px
Categories
(Firefox :: Messaging System, enhancement, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox106 | --- | verified |
People
(Reporter: mviar, Assigned: aminomancer)
References
(Blocks 1 open bug)
Details
Attachments
(6 files, 1 external file)
Currently, the feature callout overlaps its parent element by 15%. This resulted in too much of the parent element being covered in some cases. To address this issue, we'll revert to the original behavior of overlapping parent elements by a set 15px.
Confirm screenshots of the final result of these changes with Tati in design before landing.
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 1•4 years ago
|
||
Feature Callouts are absolute positioned, but their coordinates are calculated
from those of the parent element given by a selector property on the message.
They were originally adjusted to overlap by 15px, but that was changed to
0.15x - y, where x is the parent width/height and y is the callout's arrow size
(which is 12px). But using a scaling factor may cause unexpected results where
parent elements are unusually large, so this patch switches the overlap amount
back to 15px. In the future, we could consider adding a property to the schema
so that each feature tour screen can specify an overlap amount to override the
default 15px.
| Assignee | ||
Comment 2•4 years ago
|
||
Here are some screenshots of the first revision of the above patch.
| Assignee | ||
Comment 3•4 years ago
|
||
| Assignee | ||
Comment 4•4 years ago
|
||
| Assignee | ||
Comment 5•4 years ago
|
||
Hi Tatiana, let me know if these look okay. Thanks :)
Comment 6•4 years ago
|
||
Hey Shane!
These look okay! thank you for the change!
Zooming in by even 10% still results in the "I" in Independent Voices" being overlapped. @Tati would you be comfortable with less overlap of the elements to accommodate users who have zoomed content? Technically what's in the screen shots is more than 15px overlap, but padding means that varies a bit element to element.
@Venetia curious to hear your thoughts as well as you reported it.
I would recommend the solution that doesn't cover any of the headlines - less overlap would be ok with me but I defer to @Tati on this.
| Assignee | ||
Comment 10•4 years ago
|
||
Oh right, to be clear, the revision reflected in the screenshots is 15px overlap excluding the arrow (which is 12px). So the box overlaps the parent by 15px and that means the tip of the arrow overlaps the parent by 27px. I'm trying some different options, like having the box overlap by 5px, so I'll post some screenshots soon (including different zoom levels).
| Assignee | ||
Comment 11•4 years ago
|
||
Here's a recording of the 15px revision at various zoom states. I didn't see it overlapping text, but maybe I need to do something else to reproduce that? I'll record the 5px revision next
| Assignee | ||
Comment 12•4 years ago
|
||
Here's 5px overlap. I think this looks pretty good
| Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 13•4 years ago
|
||
(In reply to Meg Viar from comment #7)
Zooming in by even 10% still results in the "I" in Independent Voices" being overlapped. @Tati would you be comfortable with less overlap of the elements to accommodate users who have zoomed content? Technically what's in the screenshots is more than 15px overlap, but padding means that it varies a bit from element to element.
@meg As long as the "I" don't overlap I think we are okay. I saw the last record with the 5px total overlap zooming by Shane and looks like there is no chance it will overlap the text.
Comment 14•4 years ago
|
||
5px looks good and there is enough buffer space so it is unlikely to overlap!
Comment 15•4 years ago
|
||
Comment 16•4 years ago
|
||
| bugherder | ||
Comment 17•4 years ago
|
||
I have verified this enhancement and I can confirm the "feature callout" no longer overlaps the "Independent Voices" section from the "Firefox View" page.
Verified using the latest Firefox Nightly (106.0a1 Build ID - 20220901095452) installed on Windows 10 x64, macOS 11.6.5, and Linux Mint 20.2 x64.
Description
•