-
Notifications
You must be signed in to change notification settings - Fork 202
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
Make the sources tables responsive using CSS #4543
Make the sources tables responsive using CSS #4543
Conversation
Hi, @szymon-polaczy just checking in on the status of this PR. Need any help or reviews? |
Not yet, I still need to update the images and then ping everyone that wanted to be pinged. I'll probably do that tomorrow |
Feel free to ping me @szymon-polaczy once you have something ready for review. |
4e7ada2
to
f125aa6
Compare
I'm making this ready for review without the updated snapshots for now as instructed @zackkrida. @fcoveram I think you should be able to look at the changes now, though if you want to look at a whole changed snapshot instead of the website then you'll need to wait a bit more. There is also another build going on because I rebased the PR to be up to date with main |
f125aa6
to
0ba57f2
Compare
@szymon-polaczy, I ran @fcoveram, now that we've added the links to the sources pages on openverse to the sources table, maybe we could remove the |
Thanks again for the help with the snapshots @obulat . On bigger screens the button that leads to the actuall site is quite small and easy to miss. Having the domain on the table should also help in situations where someone actually wants to go to the main site and isn't just looking around as we would be saving them a page load |
This is another thing to consider. @fcoveram, do you think we should update the grid design for very large screens? It looks pretty empty. And we have many visitors on desktops. |
@obulat It seems like we're waiting on some feedback from Francisco, should I wait for that before reviewing? Would it be best to draft until he has a chance to answer your questions? |
Hi @AetherUnbound @obulat, I think that it would be a good idea to go through with this as is (or maybe just change the domain as it's still the same element) and open a completely separate issue for the big / small screens. If needed I could also in that issue add some comments from me as I use a 4k screen as my main monitor, a macbook as seconday and iphone 13 mini as daily driver so I have a pretty good feel for all sizes and as a new user I could point out some places where it looks weird or out of place. What do you think about that? |
Also I'll make this a draft if we don't come up to a conclusion tomorrow to not have the bot ping the reviewers every day about it |
I don't think this needs to be blocked on feedback from @fcoveram. We don't need to remove the domain to fix the mobile table issue, do we? Why block the fix for mobile on that page on yet another change outside the scope of the original bug, which can certainly be done in a separate PR without increasing the difficulty of it, and which not doing now presents no harm to the page. Even if it does cause some problem (please document this if so), it's certainly not more harmful than the page just not working on mobile? |
.table { | ||
@apply rounded-sm border-0 border-dark-charcoal-20; | ||
.source-table { | ||
@apply hidden rounded-sm border-0 border-dark-charcoal-20 md:table; |
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.
Is there a difference between hidden md:table
and sm:hidden
? Wondering mostly because sm:max-md:hidden
avoids encoding an implementation detail about the template in the style, while also reducing the overhead of understanding when this is visible, in particular compared to the mobile table which is md:hidden
.
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.
This is made this way as the normal table is hidden until you hit the md breakpoint, and the mobile table is visible until you hit the md breakpoint. If doesn't answer your question could you try to reword it? I'm trying to understand the question but I'm getting lost a bit as the classes don't really make sense to me
My comments are just nit-picks and none are blockers, just suggestions or questions. I will do a proper review for functionality in about an hour (unable to just this minute). |
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.
Okay, this tests well for the most part. I spent some time getting my Windows VM back up so I could test this with JAWS and there's at least one easy to fix accessibility issue. I've left a suggestion for it that works locally. Otherwise, I think this is fine.
@dhruvkb if you can take some time to test this with VoiceOver, that'd be great 🙏
I will be on holiday starting tomorrow, so please dismiss my review once the change is in and I'm sure others will be able to review this.
The only additional thing worth bringing up is that I thought we may have frozen the frontend code for the Nuxt 3 work, but how that work is progressing or what the plan is to get it merged and deployed is unclear to me. @obulat can you clarify if the frontend code is frozen and whether this PR can be merged or if it needs to wait until after Nuxt 3 (and then rebased and refactored if needed)? It'd be nice to get this in, considering it's been open for a month now.
Thanks @szymon-polaczy for your contribution and time for fixing this bug. The new mobile version looks very good!
</table> | ||
|
||
<section role="region" class="mobile-source-table"> | ||
<article v-for="provider in sortedProviders" :key="provider.display_name"> |
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 don't totally understand the usage of article
. What is the intention meant to communicate with it? In JAWS it adds article start/end announcements when navigating through the page, without any useful context to know what the article would be about.
It would help to add title
to this element. JAWS then announces the title instead of just "article" which makes it possible to skim the sources list by moving through each article instead of needing to go two elements into each article just to find out the name of the sources.
<article v-for="provider in sortedProviders" :key="provider.display_name"> | |
<article v-for="provider in sortedProviders" :key="provider.display_name" :title="provider.display_name"> |
This seemed to test well locally when I tried it with JAWS.
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.
Thank you for showing me how you do the accessibility tests. I used the article element as in my head each row, each site was it's own box, not a full section, just an article. It seemed better than using div but it you think it might be better for accessibility then I'm open to chaning it
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 added myself back as reviewer to approve what I'm seeing in my local. Great work ✨
Domain column in tableI'm drawn to keep the column to ease visiting the source site. Going to the source results page from the table to then visit the source site doesn't sound like a common flow. Frozing the frontendI approved the PR based on what I see on my browser, but I will defer to you all what's better in terms of implementation times. Results gridTo @obulat's point
Is that possible? I thought the number of results displayed on the page was a fixed value no matter the breakpoint. If it's doable, sure; I'd like to explore a solution. @sarayourfriend's is right that my feedback should not be a blocker. If reviewers approve the changes, then any improvement skipped or missed can be addressed in a follow-up ticket. Apologies for not arriving timely to this work. Thanks @szymon-polaczy for the contribution. |
Based on the contributor urgency of this PR, the following reviewers are being gently reminded to review this PR: @AetherUnbound Excluding weekend1 days, this PR was ready for review 6 day(s) ago. PRs labelled with contributor urgency are expected to be reviewed within 3 weekday(s)2. @szymon-polaczy, if this PR is not ready for a review, please draft it to prevent reviewers from getting further unnecessary pings. Footnotes
|
This reverts commit e194701.
Signed-off-by: Olga Bulat <obulat@gmail.com>
042baca
to
239092d
Compare
Signed-off-by: Olga Bulat <obulat@gmail.com>
Hi @sarayourfriend, I've either implemented your comments or responded to them. Should I try doing something with the snapshots @obulat? I see that you've forced pushed a change that removed them so I'm wondering if there's something that should be done with that or should I just recreate them |
Signed-off-by: Olga Bulat <obulat@gmail.com>
Hi @szymon-polaczy, sorry for the confusion caused by my not communicating anything. I was planning to approve your PR yesterday after using it to test the new snapshot update process, but I couldn't finish the work yesterday. |
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.
Thank you for your contribution and for improvements to accessibility, @szymon-polaczy !
Fixes
Fixes #470 by @kajalmultidots
Description
This PR updates the source tables based on the design from #470.
It uses that design for the small devices but not phones.
On mobile phones it uses it as a baseline and changes the layout for better responsivity.
Concern was raised that this means that the table is really long on mobile devices but for now this was the best option.
Testing Instructions
Run the frontend and go to the /sources page. To see updated designs you have to check less than 768px width for the wide option and less than 640px for the tall option.
Checklist
Update index.md
).main
) or a parent feature branch../ov just catalog/generate-docs
for catalogPRs) or the media properties generator (
./ov just catalog/generate-docs media-props
for the catalog or
./ov just api/generate-docs
for the API) where applicable.Developer Certificate of Origin
Developer Certificate of Origin