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

Accessibility of the status page #3148

Merged
merged 7 commits into from
Oct 2, 2024

Conversation

Andrea-Guevara
Copy link
Contributor

References

Description

Using grid system classes, creation of a new class in scss and media query to improve the responsiveness of the status page using the "item-operation" component.

Instructions for reviewers

List of changes in this PR:

  • In the "item-operation" component, the grid system classes "col-3" and "col-9" have been replaced by "col-12 col-md-3" and "col-12 col-md-9" in the div containing the text describing the functionality of the buttons and in the div containing the buttons.
  • The "item-operation.component.scss" file was created for styling.
  • The "column-height" class was created to define the height of the grid columns on larger and smaller screens using media queries.

To reproduce:

  • Log in as an administrator.
  • Enter an item and click on the edit button.
  • Click on the status button.
  • Zoom out and see that the texts and buttons on the status page are responsive.

…status page using the item-operation component
@tdonohue tdonohue added accessibility 1 APPROVAL pull request only requires a single approval to merge port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release bug labels Jun 26, 2024
@nwoodward
Copy link
Contributor

I tested this PR locally in Firefox and Chrome, and it does make the buttons and their labels on the status page more responsive. But for some reason there is space between the text and the button, so the text appears closer to the button above it. See screenshot.
Screenshot DS-3148

@Andrea-Guevara
Copy link
Contributor Author

Hi @nwoodward, thanks for the feedback!
I had a look and realized that the h-100 class in the div containing the text was causing this! I removed it and now everything should be working properly.

@nwoodward
Copy link
Contributor

Hi @Andrea-Guevara! I confirmed the alignment issue still exists between the Bootstrap breakpoints for extra small (576px) and small screens (767px). I think the issue is that setting the height to 100% in the new column-height class does the same thing as the h-100 Bootstrap class. So I think both need to be removed. Was there a reasons for setting it in the first place?

@Andrea-Guevara
Copy link
Contributor Author

Hello @nwoodward, good morning!

Sorry for the delay in replying, our schedules haven't been matching up. You're right, we could set the height of the text column with the h-auto bootstrap class and remove the 100% height.

My main idea was: on larger screens leave the height of the text column at 100% and on smaller screens leave it automatic.

Thank you for your suggestions, I look forward to your feedback.

Copy link
Member

@artlowel artlowel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Andrea-Guevara!

I agree with the change, however there are a few other rows on that page, in a different component:

Would you mind fixing those too? Because currently it looks like only half the page is resizing:
image

I think making the labels bold would also help to make it more clear on small screens (and it doesn't hurt if they're bold on large screens as well)

@Andrea-Guevara
Copy link
Contributor Author

Good afternoon @artlowel!
Thank you very much for your feedback.

I've made the changes to the “item-status.component” component, and in addition to your suggestions, I've added a small space between the lines to improve readability.

I think the bold labels are great!

We'll be happy to help with anything.

Copy link
Member

@artlowel artlowel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Andrea-Guevara!

The bold makes it clearer indeed. Can you apply it to the bottom half of the page as well, the part in item-operation.component.html?

Comment on lines 1 to 3
.status-label {
font-weight: 700;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add the css class font-weight-bold to the HTML rather than setting it in css.

The reason for that is: if you want to change how bold the text is in your theme. Then you can do it in a single place if we use the same css class everywhere. If we don't, you'd have to find all instances of font-weight in scss files across the app to change it

@Andrea-Guevara
Copy link
Contributor Author

Good morning @artlowel!

I've already adjusted the code. In the “item-status.component.html” the labels are defined directly in the divs, if it's interesting for you, I could add the tag as it is defined in the “item-operation.component.html”.

I hope I've got it right and made the necessary adjustments to the code.

Once again, we are at your disposal!

Copy link
Member

@artlowel artlowel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Andrea-Guevara!

This looks good!

@tdonohue tdonohue added the port to dspace-8_x This PR needs to be ported to `dspace-8_x` branch for next bug-fix release label Oct 2, 2024
@tdonohue tdonohue added this to the 9.0 milestone Oct 2, 2024
@tdonohue tdonohue merged commit bbc9329 into DSpace:main Oct 2, 2024
13 checks passed
@dspace-bot
Copy link
Contributor

Backport failed for dspace-7_x, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin dspace-7_x
git worktree add -d .worktree/backport-3148-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-3148-to-dspace-7_x
git switch --create backport-3148-to-dspace-7_x
git cherry-pick -x e06b67fd73358ac52e2e71fa96d708520de33f3e 5f4a049fddeceda0fdbb870410d3780b858bcca9 3800021ed364a7994b454e1a75c59a3f7f7581d1 f975e1da897b34df0621ecd78ee11d4fc58460b4 4aed1b60563b3486da9f5c98cd4ee15451553b73

@dspace-bot
Copy link
Contributor

Successfully created backport PR for dspace-8_x:

tdonohue added a commit to tdonohue/dspace-angular that referenced this pull request Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 APPROVAL pull request only requires a single approval to merge accessibility bug port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release port to dspace-8_x This PR needs to be ported to `dspace-8_x` branch for next bug-fix release
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Deque Analysis] Item Edit "Status" Tab "serious" accessibility issues
5 participants