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)
Tracking
()
RESOLVED
FIXED
People
(Reporter: csuciu, Assigned: mahabali3004, Mentored)
Details
(Whiteboard: [good-first-bug][lang=swift])
Attachments
(1 file)
When tapping on 'Undo' closed tabs button there's no feedback. The button should have a pressed state.
Flags: needinfo?(randersen)
Updated•9 years ago
|
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 ?
Comment 2•9 years ago
|
||
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)
Updated•9 years ago
|
Status: NEW → ASSIGNED
Updated•9 years ago
|
Priority: -- → P3
Is there any progress on this bug. I would like to fix this one
Comment 4•8 years ago
|
||
It looks like this bug has stalled. Feel free to work on it. All patches are welcome.
Hey, noticed no progress on this issue so went ahead and fixed it here
https://github.com/mozilla-mobile/firefox-ios/pull/2302
Attachment #8822470 -
Flags: review?(sleroux)
Updated•8 years ago
|
Attachment #8822470 -
Flags: review?(sleroux) → review+
Comment 8•8 years ago
|
||
master 0218c37044e9bed4c47bbb685adbf8864e6b6a14
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 9•8 years ago
|
||
Thanks for the contribution!
You need to log in
before you can comment on or make changes to this bug.
Description
•