Design comparison
Solution retrospective
Is there a shadow behind the end of the social media bubble? If so, how do you put a shadow there? Any feedback is appreciated!
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Desktop layout looks great, it is responsive and the mobile layout looks great as well.
I think you already have the
box-shadow
applied on it, I tried looking at it and it seems it has it.Some suggestions would be:
- First, it would be really great to have:
html { box-sizing: border-box; font-size: 100%; } *, *::before, *::after { box-sizing: inherit; }
As one of your default styling. By doing this, all element size will only be limited to its content or explicit sizes. Currently, without
box-sizing: border-box
an element's size gets changed with addition ofpadding
andmargin
which should not be, using the styling I gave, it will be easier to handle element.- When using
img
element, never forget to add thealt
attribute, either it is empty or has a value, include it. Not including this results to screen-reader reading the source path of the image which you don't want, so always include it. - I wouldn't really use
h1
on the bold text since it doesn't look like heading title for me :> - Person's
img
should be using their name as thealt
likealt="michelle appleton"
. When a person's name and image are both present in components like this, use their name asalt
. - Social media toggle should be using
button
and notdiv
. An interactive component needs to use interactive elements. Usingdiv
is not accessible. - The
button
that should be use on the toggle should have eitheraria-label
attribute or screen-reader element inside it. The value for whatever method you will use should be the information on what thebutton
does, for example on yourbutton
it should have an attributearia-label="share on social media menu dropdown"
- The
img
inside thebutton
should be hidden so usealt=""
and addaria-hidden="true"
attribute on it. A decorative image needs to be hidden at all times. - On the social media, you could have use
ul
element to wrap all 3 since those are "list" of links and since they are links, they all should be usinga
tag and not onlyimg
. - Each
a
tag that wraps the icon again should either usearia-label
or screen-reader method. The value will be the name of the link likearia-label="facebook"
you set on thea
tag. You typically do this if there are no text-content inside the element where screen-reader could have read. - Social media icon should be hidden since they are only decorative images.
Aside from those, really great job on this one.
Marked as helpful0
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