Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow filtering by role on Team page #111

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

JordanMussi
Copy link
Contributor

image

image

@JordanMussi JordanMussi requested a review from dvz June 20, 2020 20:11
@JordanMussi
Copy link
Contributor Author

Live example on my fork: https://jordanmussi.github.io/mybb.com/about/team/

@euantorano
Copy link
Member

I think the selected filter could do with some more distinction - perhaps apply a background using the border colour to the button? At the moment, I can barely tell that it's selected on my external monitor.

@JordanMussi
Copy link
Contributor Author

@euantorano I didn't want to confuse with the team leader styling which has the team's colour as a solid background.

I've put some concepts in my fork:

@JordanMussi
Copy link
Contributor Author

Would be good to get some thoughts from @justinsoltesz too 😄

@justinsoltesz
Copy link
Member

justinsoltesz commented Jun 25, 2020

How about using a 2px border instead of 1px for the active role?

image

My only other thought is would it be possible to highlight the role description on the side (or possibly hide the other roles)? They currently only get highlighted if you click on one of someone's roles.

@JordanMussi
Copy link
Contributor Author

JordanMussi commented Jun 25, 2020

How about using a 2px border instead of 1px for the active role?

Wouldn't that create a shift of the role buttons when changing?

Edit: I suppose if using two spans the outside could have a transparent border of 1px and then change colour to then give appearance of 2px?

My only other thought is would it be possible to highlight the role description on the side (or possibly hide the other roles)? They currently only get highlighted if you click on one of someone's roles.

That's quite far down the page and on mobile would definitely be out of view.

@justinsoltesz
Copy link
Member

justinsoltesz commented Jun 25, 2020

How about using a 2px border instead of 1px for the active role?

Wouldn't that create a shift of the role buttons when changing?

Edit: I suppose if using two spans the outside could have a transparent border of 1px and then change colour to then give appearance of 2px?

You can adjust the margin as well (margin: 5px 1px to override the margin: 6px 2px) to account for that.

My only other thought is would it be possible to highlight the role description on the side (or possibly hide the other roles)? They currently only get highlighted if you click on one of someone's roles.

That's quite far down the page and on mobile would definitely be out of view.

If you hide the other roles, the active role would be in view on desktop. Just a thought.

@dvz
Copy link
Member

dvz commented Jun 25, 2020

How about using a 2px border instead of 1px for the active role?

It may be too hard to notice.

How about displaying the member count (if not 0) in the legend that points to the filter (instead of repeating roles above the list)?

Language can be corrected for consistency (#role-* points to definition, maybe #role-members-* for the list?).

As noted earlier, a JS solution would likely be more clear, and the CSS would be static so we could move it to CSS files.

@JordanMussi
Copy link
Contributor Author

How about displaying the member count (if not 0) in the legend that points to the filter (instead of repeating roles above the list)?

Was aiming for a more discoverable and "tabbed" feel but a link to show members from the roles legend would be fine too.

Language can be corrected for consistency (#role-* points to definition, maybe #role-members-* for the list?).

Happy to make that change - intention was eg "team members with role development" not "development team members"

As noted earlier, a JS solution would likely be more clear, and the CSS would be static so we could move it to CSS files.

Will possibly be better but was trying to avoid JS.

@JordanMussi
Copy link
Contributor Author

How about displaying the member count (if not 0) in the legend that points to the filter (instead of repeating roles above the list)?

This actually doesn't feel as good on mobile as the controls are far from where the changes are happening.

https://jordanmussi.github.io/mybb.com/about/team-legend/

@dvz
Copy link
Member

dvz commented Jun 25, 2020

Doesn't the auto-scroll help? Should role members be browseable like tabs when they can appear in multiple places?

@euantorano
Copy link
Member

In my opinion https://jordanmussi.github.io/mybb.com/about/team-background/#team-members-editorial is th most obvious as to which is selected.

@JordanMussi
Copy link
Contributor Author

Doesn't the auto-scroll help? Should role members be browseable like tabs when they can appear in multiple places?

To switch between teams you have to scroll to the legend each time which feels clunky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants