Closed Bug 1063633 Opened 10 years ago Closed 10 years ago

Treeherder's "login with persona" button too large and not consistent with current design guidelines

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wlach, Assigned: KWierso, Mentored)

Details

(Whiteboard: [good first bug])

Attachments

(1 file)

Treeherder currently has a large "login with persona" button:

https://treeherder.mozilla.org/ui/#/jobs

According to the Persona user interface guidelines, we should be able to use a smaller login / sign up button, which would save us a bit of horizontal space:

https://developer.mozilla.org/en-US/Persona/User_interface_guidelines#Sign_up.2FSign_in_link

This bug should be pretty simple to fix by just changing the button image. :) Ryan, do you have (or could you make) an appropriately sized png that we could use here?
Flags: needinfo?(rfeeley)
OS: Linux → All
Priority: -- → P3
Hardware: x86_64 → All
It's best to look as native to your site as possible. I recommend using an existing (Bootstrap 3) button style like this:
<a class="btn btn-view-nav">Log in / Register</a>
I don't even think you need to head icon.
Flags: needinfo?(rfeeley)
Cool! I guess in that case we can make this a good first bug. Procedure:

1. Check out treeherder-ui and get it running: https://github.com/mozilla/treeherder-ui/blob/master/README.md
2. Modify webapp/app/partials/persona_buttons.html per Ryan's instructions above
Mentor: wlachance
Whiteboard: [good first bug]
We'd want the same styling for the logout button, yes?
Assignee: nobody → kwierso
(In reply to Wes Kocher (:KWierso) from comment #3)
> We'd want the same styling for the logout button, yes?

Yup.
Attached file Pull request 154 β€”
Comment on attachment 8485242 [details] [review]
Pull request 154

Looks fine to me.
Attachment #8485242 - Flags: review?(wlachance) → review+
https://github.com/mozilla/treeherder-ui/pull/154
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Hrm, this doesn't actually seem to have done anything... Now that treeherder-dev has been updated with this code, it's still using the big, blue buttons...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reloading the page while bypassing the cache (Ctrl/Cmd-Shift-R) showed the old Persona button. Deleting my cache completely and reloading the page showed the new button style.

Re-resolving.
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
https://github.com/mozilla/treeherder-ui/commit/eecbf5fa9d281c86d1b671376fc965498ffca4e6
Commits pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/0469b5216b9ed62bf830f01703180f25ec925585
Bug 1063633 - Change Persona login button styling

https://github.com/mozilla/treeherder/commit/b0bce58f388564789041fb5629dbb7f30ef66d02
Merge pull request #154 from KWierso/1063633

Bug 1063633 - Change Persona login/logout button styling.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: