-
Notifications
You must be signed in to change notification settings - Fork 56
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
[ENG-6191] Improve Styling and Add Total Users Label #2327
[ENG-6191] Improve Styling and Add Total Users Label #2327
Conversation
d4ff7f7
to
6ff2fdf
Compare
6ff2fdf
to
ae93ff2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple minor changes. Could you add a screenshot for mobile view to the PR as well?
<span local-class='total-users-count'> | ||
{{@totalUsers}} | ||
</span> | ||
<label>{{t 'institutions.dashboard.users_list.total_users'}}</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<label>
feels a bit inappropriate to use here, as there is no <input>
that this is labelling. Could likely just be another span
I think
@@ -142,6 +142,11 @@ | |||
margin-bottom: 10px; | |||
} | |||
|
|||
.dropdown-trigger { | |||
padding: 9px; | |||
color: #337ab7; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
color: #337ab7; | |
color: $color-select; |
…ForOpenScience/ember-osf-web into improve-mobile-styling-inst-dashboard * 'feature/insti-dash-improv' of https://github.com/CenterForOpenScience/ember-osf-web: Removed old tests Fixed some api issues Added a new test and removed an old one Added a new total count kpi # Conflicts: # translations/en-us.yml
@Johnetordoff remember to close the hide/add dropdown on clicking |
…ForOpenScience/ember-osf-web into improve-mobile-styling-inst-dashboard * 'feature/insti-dash-improv' of https://github.com/CenterForOpenScience/ember-osf-web: Added a test with test-data elements Updates to add the project total # Conflicts: # translations/en-us.yml
bb31bd3
to
ae7adb0
Compare
ae7adb0
to
e3e1c76
Compare
} | ||
|
||
/* Add media query for mobile devices */ | ||
@media (max-width: 1000px) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've tried to move away from hard-coding pixel values into our CSS. Instead, in the template you could use our is-mobile
helper
<div local-class=table-wrapper {{if (is-mobile 'mobile'}}>
then change this line to be .mobile
and adjust the nested selectors as needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I think this scrolling behavior and no-wrap on the text is something we may want regardless of mobile or not. Let me doublecheck with product though
.table table { | ||
min-width: 1000px; /* Set the table's width to be wider than the viewport */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I worry about setting an explicit min-width
here, as the table may not need the full 1000px as users can hide columns and whatnot... Can this be implemented without this hard-coded min-width?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨✨
@@ -51,71 +57,73 @@ | |||
<Button @type='secondary' {{on 'click' dd.actions.close}}> | |||
{{t 'general.cancel'}} | |||
</Button> | |||
<Button @type='primary' {{on 'click' this.applyColumnSelection}}> | |||
<Button @type='primary' {{on 'click' this.applyColumnSelection}} {{on 'click' dd.actions.close}}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for future reference, if you want to have a click even do multiple actions in sequence, you can use either the pipe
or queue
helper like
{{on 'click' (queue this.firstAction this.secondAction)}}
Docs for those can be found here: https://github.com/DockYard/ember-composable-helpers?tab=readme-ov-file#queue
25d34a4
into
CenterForOpenScience:feature/insti-dash-improv
Purpose
Standardize user tab look and make work for mobile, put in total users label.
Summary of Changes
Screenshot(s)
Side Effects
QA Notes