Responsive Art Gallery Website built with SCSS, BEM, and Leaflet.
Design comparison
Solution retrospective
Any tips on accessibility are always welcome! I'm also interested in getting better with SCSS(Sassy CSS). Thank you to anyone who takes time out of their day to view my solution.
Community feedback
- @fazzaamiarsoPosted over 2 years ago
Hello, Richard! Great job on your solution!
On accessibility, I want to point out that the arrow image is better if you give it
aria-hidden="true"
oralt=""
attribute to hide it from screen readers. That is because screen reader don't need to read the alt text of your arrow button as it is just a presentational image (I assume).https://www.w3.org/WAI/tutorials/images/decorative/
I hope it helps!
Marked as helpful1@richieAielloPosted over 2 years ago@fazzaamiarso Thank you for the advice! I will definitely checkout the w3 article you linked and address this!
0 - @vanzasetiaPosted over 2 years ago
Hi, Richard! 👋
The link for the "Preview Site" is not the link to the site. The link for the site is the one that you put on the
README.md
(https://art-gallery-website-richieaiello.netlify.app/index.html).Some recommendations from me.
- There's actually no
header
on the site.header
is used to wrapnav
and commonly the logo of the company. Thehero
section should be the first child element of themain
element. - Remove the
br
from bothhero__heading
andfooter__heading
. Screen readers will read outbr
elements. So, I recommend using amax-width
orflex-basis
if the parent element is a flex container to limit the width of the headings. - For all the images, I recommend using
picture
element since each image has another two versions. - I suggest making the
hero__background-left
with CSS. You can use pseudo-element to do that. This way, you can clean up the HTML a bit. - All the
image-hero
andimage-grid
are decorative images. They don't give meaningful information. So, my recommendation is to leave thealt=""
empty.
I am just noticing the custom scrollbar. It looks nice! 👏
By the way, do you know that on mobile landscape view (640px * 360px) the user can't scroll on the location page? It's because the map fills the entire screen. So, when the user tries to scroll, it scrolls the map (not the page).
That's it! Hope this helps. 😊
Marked as helpful0 - There's actually no
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord