Closed Bug 1787461 Opened 4 years ago Closed 4 years ago

Change Feature Callout's overlap of parent elements to 15px

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
106 Branch
Iteration:
106.1 - Aug 22 - Sept 2
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.

Iteration: --- → 106.1 - Aug 22 - Sept 2
Priority: -- → P1
Assignee: nobody → shughes
Status: NEW → ASSIGNED

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.

Attached image Callout 1 —

Here are some screenshots of the first revision of the above patch.

Attached image Callout 2 —
Attached image Callout 3 —

Hi Tatiana, let me know if these look okay. Thanks :)

Flags: needinfo?(tmirson)

Hey Shane!
These look okay! thank you for the change!

Flags: needinfo?(tmirson)

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.

Flags: needinfo?(tmirson)

@Venetia curious to hear your thoughts as well as you reported it.

Flags: needinfo?(vtay)

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.

Flags: needinfo?(vtay)

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).

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

Here's 5px overlap. I think this looks pretty good

Attachment #9292118 - Attachment description: 15px total overlap, zooming from 100% to 150% → 15px total overlap, zooming from 100% to 170%
Attachment #9291841 - Attachment description: Bug 1787461 - Change Feature Callout's overlap of parent elements to 15px. r?mviar → Bug 1787461 - Change Feature Callout's overlap of parent elements to 17px. r?mviar

(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.

Flags: needinfo?(tmirson)

5px looks good and there is enough buffer space so it is unlikely to overlap!

Pushed by shughes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b6d4cc392199 Change Feature Callout's overlap of parent elements to 17px. r=mviar
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch

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.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: