Closed Bug 1311629 Opened 9 years ago Closed 8 years ago

'Undo' closed tabs button should have pressed state

Categories

(Firefox for iOS :: Browser, defect, P3)

All
iOS
defect

Tracking

()

RESOLVED FIXED
Tracking Status
fxios + ---
fxios-v5.3 --- affected
fxios-v6.0 --- affected

People

(Reporter: csuciu, Assigned: mahabali3004, Mentored)

Details

(Whiteboard: [good-first-bug][lang=swift])

Attachments

(1 file)

55 bytes, text/x-github-pull-request
sleroux
: review+
Details | Review
When tapping on 'Undo' closed tabs button there's no feedback. The button should have a pressed state.
Flags: needinfo?(randersen)
Mentor: sleroux
Whiteboard: [good-first-bug][lang=swift]
Hello ,I want to work on this bug . is this still valid ? could you tell how can i resolve it ?
Hey shrvan, This bug is still valid. As a starting point, you can check out the code that creates the toast that appears when the user closes all the tabs. Specifically, here's where we construct the button in question that has no pressed state: https://github.com/mozilla-mobile/firefox-ios/blob/master/Client/Frontend/Browser/ButtonToast.swift#L63 The button is custom drawn and doesn't use an image so it's a bit more involved than setting an image for the selected state. One approach you can try is to create a private UIButton subclass in the same file and override the `setSelected` method to toggle the background/text color. The button right now has a clear background with white text so I'd probably make the selected state use a white background with clear text. I'll go ahead and assign this bug to you.
Assignee: nobody → shrvan.amlekar
Flags: needinfo?(randersen)
Status: NEW → ASSIGNED
Priority: -- → P3
Is there any progress on this bug. I would like to fix this one
It looks like this bug has stalled. Feel free to work on it. All patches are welcome.
I'll go ahead and re-assign.
Assignee: shrvan.amlekar → mahabali3004
Hey, noticed no progress on this issue so went ahead and fixed it here https://github.com/mozilla-mobile/firefox-ios/pull/2302
Attached file Pull request
Attachment #8822470 - Flags: review?(sleroux)
Attachment #8822470 - Flags: review?(sleroux) → review+
master 0218c37044e9bed4c47bbb685adbf8864e6b6a14
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Thanks for the contribution!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: