feat (systemaddom): #3148 make the sections (+Top Sites) collapsible #3617
Conversation
a203e78
to
a84dab5
Compare
a84dab5
to
b0c07cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well! Only found one issue: A collapsed section should not send view impressions but currently does, see dispatchImpressionStats()
.
So, we'd need to find a way to send view impressions when the section is expanded, similar to what we do with the visibility change handler.
background-image: url('#{$image-path}glyph-arrowhead-down-12.svg'); | ||
background-size: $smaller-icon-size; | ||
height: $smaller-icon-size; | ||
transform: rotate(270deg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably need 90deg for rtl?
b0c07cd
to
9d28eae
Compare
@rlr looking good. Found one issue when testing the update: After collapsing the section, I get one more view impression ping when opening a new tab, subsequent new tabs are fine. Reopening/Expanding the section works fine too! Turned ping-centre.log on to see this. Happy to help debug this. |
@rlr UPDATE: Argh, I see it now. We need an additional check for The visibility listener could've been attached in a tab where the section was still expanded. So, the section could've been collapsed in the meantime. This only happens for pre-rendered tabs. That's why I was only seeing one additional ping. Sorry for my confusion earlier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found one minor issue (see updated comment above).
9d28eae
to
30c4613
Compare
d5e790a
to
edd41d3
Compare
Once again, a lot of the code changes is moving stuff around.
Fixes #3148