-
Notifications
You must be signed in to change notification settings - Fork 384
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
src/app: adjust item count style #2316
Conversation
@damian-joz can you give this a quick test and share your feedback so we can hopefully merge it for DSpace 7.6? Thanks! |
3f7c886
to
4430042
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.
@alanorth : This works, but it looks like you forgot to update the http://localhost:4000/community-list page as well? That page also shows these item counts.
I think you need to make the same change here:
https://github.com/DSpace/dspace-angular/blob/main/src/app/community-list-page/community-list/community-list.component.html#L40
If you could make this change on Monday, I'll make sure to re-test it on Tues (I'm out Mon) and get it merged then.
4430042
to
e053cf0
Compare
Oh, good catch! Fixed and force pushed an updated commit. |
To make the seperation between the item count & the title more clear we could maybe use the same layout as used for the item count in |
I like the current style because it looks like the well-established DSpace 5/6 XMLUI style, but you have a point that we are already using the pill style to show counts of things in DSpace 7 so perhaps we should be consistent...? |
Testing with @alexandrevryghem's suggestion to use Bootstrap badge pills: It looks OK, but the vertical alignment is slightly off. Not sure if that is easy to fix without converting this to a CSS Flex / grid like in the browse subject page (see example on demo7.dspace.org). |
A quick fix is to fix it using .badge {
vertical-align: text-top;
} |
@alexandrevryghem here is an implementation that copies the Flex one in It's a bit too much padding (Bootstrap Let's see when @tdonohue gets back which he prefers. |
@alanorth and @alexandrevryghem : I'm OK with the "pill" approach since we are already using in it in "Browse by Subject" / "Browse by Author" to list the count of the number of items under each. It does keep the UI more consistent. That said though, I'd like to get this change merged quickly... the release is likely to be cut on Thurs (June 22). So, if someone could update this PR or create a new one, I'd appreciate it. |
e053cf0
to
5231455
Compare
@tdonohue sure, I agree that the pills are more consistent. I updated this PR to make the item counts use the same flexbox style as the "browse by" pills for the home page and sub-community pages, with a minor difference in the CSS classes on the community list. Home page: Sub-community page: Community list: P.S. does anyone else think there is a bit too much whitespace between the community/collection name and the pills? |
Minor adjustment to community and collection item counts. Instead of using the Bootstrap `lead` class, which reduces weight but increases size, we should use the same badge / pill style used in other counts like on on the browse by pages.
5231455
to
07a8024
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.
👍 Thanks @alanorth ! This looks good to me. I do agree there might be minor tweaks we could make in the future regarding spacing on all the pages that use these pills... but this looks good enough!
References
Description
Minor adjustment to community and collection item counts. Instead of using the Bootstrap
lead
class, which reduces weight but increases size, we should use thefont-weight-light
class. This reduces the weight alone.See: https://getbootstrap.com/docs/4.6/utilities/text/#font-weight-and-italics
Before (in my custom theme, but the effect is the same in the default theme):
After:
Instructions for Reviewers
List of changes in this PR:
Reviewers should build the frontend and make sure the style of the item counts looks OK.
Checklist
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.