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
Turn my account menu into ul, because it is a list #2914
Turn my account menu into ul, because it is a list #2914
Conversation
Thanks, @ckaz! This makes sense to me. I feel like this may overlap with some work in progress in other open PRs, but I think it would be great to take care of this one detail first, and we can reconcile any conflicts after that. @sturkel89, do you mind giving this a visual inspection in all the themes (comparing against dev) and let us know if you spot any anomalies? The code changes affect the right sidebar menu in the account screen -- the account options, and the favorite lists area. As a test, I'd suggest turning on the Demo driver and creating a couple of named favorite lists. That should populate all the menu options that are impacted by these code changes. |
I've inspected the test branch in all three themes and compared the output with the dev branch. All three themes behaved identically; there was no variation between the themes. My main comments relate to aesthetics:
|
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, @sturkel89. I don't think any of those bullets are supposed to be visible at all -- I believe the intent is that this branch should look exactly like the dev branch, which it clearly does not.
@ckaz, I think you need to run npm run css
and commit the resulting changes to compiled.css
.
@sturkel89, I agree that those stretched-out list numbers are definitely not supposed to look like that. Is that happening in the dev branch as well, or only in this PR? If it's happening in dev, we should look into fixing that for the next minor release.
@pasitiis Could you check this at least wrt accessibility? Comparing to our local version we have |
@demiankatz Sorry, my oversight, since we never push our CSS files here. However, my compiled CSS looks very differently from yours -- any tricks you apply? And: How do you run lessToSass in the current dev version?
@sturkel89 Indeed, there shouldn't be any list bullets. I'll look into the drawn out badge number issue. |
@demiankatz It is in the dev branch already. When a list item has a title running over more than one line, the badge gets stretched. Maybe a |
Thanks for confirming, @ckaz. I see that it is also an issue in the release-9.0 branch, so I'll see if I can find a fix that we can incorporate into release 9.0.2. Since the exact same badge works fine in the facet display, there's probably a minor inconsistency that can be corrected. I'll see if I can figure it out, and if not, I'll recruit @crhallberg to help. UPDATE: see #2916 for work in progress on a solution. |
@ckaz, it looks like it got compiled in dev mode instead of production mode, so it's not minified and decommented. Probably my fault because I gave you the wrong command to run -- should be For lessToSass, you can currently do either |
…ttps://github.com/finc/vufind into pullrequest_accessib_turn-my-account-menu-into-ul
Thanks, @ckaz, this is looking better now... but I see there are some conflicts that need to be resolved with dev. Might as well wait until #2916 is fully resolved and we hear back from @pasitiis regarding @EreMaijala's question, and then we can merge everything together and do another round of tests on this. |
@demiankatz Yes, I had figured that much from your post in @elsenhans PR, but weirdly enough, I got errors from npm trying to install node-sass 9.0.0 -- I pinned it to use version 8 and then things started to work. It still doesn't look super-safe yet. Running
|
@ckaz, did you run |
@pasitiis , @EreMaijala -- this sounds like a reasonable addition! |
Yes, I did. I even chucked out the entire directory when I couldn't pin down the error. I'll keep an eye on it. |
@ckaz, I checked out your branch and ran I'd be interested to know, if you check this out and run |
Also, I'm seeing the same error you are when I run |
@demiankatz I just checked it out and ran
The last line translates into "sh: Line 1: grunt: command not found" However, it wrote CSS files to all themes (bootprint3, bootstrap3, sandal, local_theme_example). |
@ckaz, I think perhaps with regard to grunt, you have the tool installed in the local NPM directory of your VuFind checkout, but not globally -- so it works when it is invoked through I'm still baffled why your local run would create some files identically to mine, but others differently. Weird! |
Thanks, @ckaz! I wonder if we should add an SCSS compile step to the GitHub Actions process, so if something breaks compatibility it will also break the build and we can sort it out right away. |
Re: the question of roles, the menu role should not be used here. Adrian Roselli has written an excellent article explaining the drawbacks. I think these lists should be enclosed in nav tags with aria-labelledby attributes that point to the list titles ("Your Account," "Your Lists," etc.) so they have unique names in the screen reader's landmarks and headings list. |
I wouldn't use the menu role in this contex. Implementing it requires more work, and the benefits for a screen reader user can be minimal or non-existent. |
@pasitiis Are you talking about the keyboard support expected of a |
…r' into pullrequest_accessib_turn-my-account-menu-into-ul
…r' into pullrequest_accessib_turn-my-account-menu-into-ul
…ib_turn-my-account-menu-into-ul
Guess we should re-evaluate in the light of @stephanieleary 's comment https://github.com/vufind-org/vufind/pull/2914#issuecomment-1578750127 |
To get the css compile running, I had to merge #2922 into this. Also merged dev into it. Pls. review. |
@ckaz, now that #2922 is merged, can you resolve the conflicts here and make sure that none of the unwanted vendor changes carry over into this PR? It's possible you might be able to accomplish this by |
Since @ckaz is on holiday at the moment, I decided to take care of resolving conflicts today to keep this moving forward. I believe everything is in good order now, and the full automated test suite is now passing. @sturkel89, can you take another look at this? See our comments at the very top of this thread for what needs to be tested -- all the subsequent conversation can be ignored as it has to do with fixing problems that were discovered along the way. Ideally, this should be visually identical to the dev branch, so you shouldn't see any differences -- the changes are just intended to improve accessibility for screen readers. |
@demiankatz sorry, I overlooked your comment from last week. I will be on holiday leave from the mid of next week until August. |
Thanks for taking a look, @ckaz -- happy to help! |
I've rechecked the test branch in all three themes and compared the results to dev. Everything we identified before has been fixed!
My only tiny tweak suggestion is to increase the padding between lines when a list name wraps to multiple lines. It doesn't look too bad in Bootstrap3 or Sandal, but I think the line padding looks kind of tight in Bootprint3. NB: There's no difference between the test branch and the dev branch -- this tight spacing is present in dev, so feel free to disregard this very minor complaint! Examples: |
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, @sturkel89, for the careful testing. I'm going to merge this now, since the issue you highlight is not changed by this PR and is not directly related to the change proposed here. We should address that as a follow-up action. @crhallberg, is this something you could take a look at when time permits?
This turns my account menu into an ul, because it is a list semantically. Facets sidebar will follow in separate PR.
TODO: