Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug]: 3 dot menu icons in Bookmarks are displayed as close ("X") icons #26093

Closed
czlucius opened this issue Jul 19, 2022 · 9 comments · Fixed by #26707 or nathanmkaya/fenix#108
Closed
Assignees
Labels
🐞 bug Crashes, Something isn't working, .. eng:qa:verified QA Verified Feature:Bookmarks Feature:History needs:triage Issue needs triage qa-triaged Issues triaged by qa
Milestone

Comments

@czlucius
Copy link
Contributor

czlucius commented Jul 19, 2022

Steps to reproduce

  1. Open the bookmarks menu

Expected behaviour

Each element should have a 3 dot menu at its right

Actual behaviour

The elements have a "x" icon which implements the same functionality as the 3 dot menu. As there are other options other than clearing items in the bookmarks (e.g. Share), this would confuse users.

Device name

Samsung Galaxy S20 FE 5G

Android version

Android 12

Firefox release type

Firefox Nightly

Firefox version

104.0a1 (Build #2015892963), e9de331+ AC: 104.0.20220718174753, 8c96b863dc GV: 104.0a1-20220718132938 AS: 93.6.0

Device logs

No response

Additional information

Screenshot_20220719-120507_Firefox Nightly

┆Issue is synchronized with this Jira Task

@czlucius czlucius added needs:triage Issue needs triage 🐞 bug Crashes, Something isn't working, .. labels Jul 19, 2022
@czlucius czlucius changed the title [Bug]: 3 dot menu icons in Bookmarks are displayed as close ("X") ivons [Bug]: 3 dot menu icons in Bookmarks are displayed as close ("X") icons Jul 19, 2022
@SoftVision-LorandJanos
Copy link

Hi @czlucius ! Thanks for your report!
I will modify this to a feature request as this is an intended behavior at the moment.

@SoftVision-LorandJanos SoftVision-LorandJanos added feature request 🌟 New functionality and improvements Feature:History Feature:Bookmarks qa-triaged Issues triaged by qa and removed 🐞 bug Crashes, Something isn't working, .. labels Jul 20, 2022
@Mugurell
Copy link
Contributor

Mugurell commented Jul 20, 2022

There is no issue for history. The "x" button will delete a single history entry.
More options are available for history items if long pressing on them.

This is a recent regression from the for bookmarks from #25937.
For technical notes: happens because the layout used for bookmarks will show a LibrarySiteItemView which was recently updated to show that "X" image for the "overflow_menu".

@SoftVision-LorandJanos
Copy link

As mentioned above, there was no issue with history, the described issue is only on bookmarks, and I was able to reproduce it on the latest Nightly 104.0a1 (2022-07-20) build. The 3 dot menu is replaced by the "X" with the context menu function.
Device used: Google Pixel 4 (Android 12).
I edited the details of the issue to be clear it's only about bookmarks.
I will switch back the feature request label to the bug label. Thank you!

@SoftVision-LorandJanos SoftVision-LorandJanos added 🐞 bug Crashes, Something isn't working, .. and removed feature request 🌟 New functionality and improvements labels Jul 20, 2022
@LaurentiuApahideanSV
Copy link

The issue also occurs on Firefox Beta 105.0b1.

Device used:

  • Huawei MediaPad M3 (Android 7)
  • OnePlus 6T (Android 9)

@DavidJCobb
Copy link

Just got this issue on the release build. I don't recall it being a problem before, so I guess this bug just made it through to ship with no one stopping it -- and this'll be affecting a lot more people now.

For technical notes: happens because the layout used for bookmarks will show a LibrarySiteItemView which was recently updated to show that "X" image for the "overflow_menu".

Does this mean that the Fenix team are updating UI views without even knowing what uses them?

@czlucius
Copy link
Contributor Author

There is no issue for history. The "x" button will delete a single history entry. More options are available for history items if long pressing on them.

This is a recent regression from the for bookmarks from #25937. For technical notes: happens because the layout used for bookmarks will show a LibrarySiteItemView which was recently updated to show that "X" image for the "overflow_menu".

@Mugurell
It seems that HistoryListItemViewHolder already overrides the default 3 dot icon with a close icon.


Hence, ic_close is not needed in library_site_item.xml, and it can use ic_menu to ensure that the bookmark menu (or any other menu that uses the LibrarySiteItemView will have a 3 dot icon instead of a close icon.

@czlucius
Copy link
Contributor Author

I shall make a PR on this.

czlucius added a commit to czlucius/fenix that referenced this issue Aug 30, 2022
An override for History already exists in `HistoryListItemViewHolder`, so no global override for this icon is needed.
@github-actions github-actions bot added the eng:reopen-for-qa Reopens and tags the issue for QA needed when the issue is merged label Aug 30, 2022
@czlucius
Copy link
Contributor Author

The attached PR solves the issue, and allows History to keep its close icon.

rvandermeulen pushed a commit that referenced this issue Aug 30, 2022
An override for History already exists in `HistoryListItemViewHolder`, so no global override for this icon is needed.
@github-actions github-actions bot reopened this Aug 30, 2022
@github-actions github-actions bot added eng:qa:needed QA Needed and removed eng:reopen-for-qa Reopens and tags the issue for QA needed when the issue is merged labels Aug 30, 2022
@SoftVision-LorandJanos
Copy link

Verified as fixed on the latest Nightly 106.0a1 (2022-08-30T17:07:53.356749) build.
Deice used: Oppo Find X5 (Android 12).
Closing the ticket as verified.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
🐞 bug Crashes, Something isn't working, .. eng:qa:verified QA Verified Feature:Bookmarks Feature:History needs:triage Issue needs triage qa-triaged Issues triaged by qa
Projects
None yet
6 participants