Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive 3-column card component using semantic HTML and CSS

#bem
Mushfiq Rahman• 300

@Ayon95

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

PhoenixDev22• 16,990

@PhoenixDev22

Posted

hello @Ayon95 ,

I have some suggestions regarding your solution :

  • <svg> 's do not add important information to a document should be considered decorative. You can use aria-hidden="true" to hide the SVG from screen readers. focusable="false" is also used to ensure Internet Explorer won’t allow the Tab key to navigate into the SVG.

  • Create a custom:focus-visiblestyling to any interactive elements. This will make the users can navigate this website using keyboard (by using Tab key) easily.

Hopefully this feedback helps.

Marked as helpful

0

Mushfiq Rahman• 300

@Ayon95

Posted

@PhoenixDev22 Thanks for the feedback. You are right about the decorative SVG icons. The links are tabbable even without :focus-visible. As far as I know, you need :focus-visible when you want to show the focus indicator only when the user navigates to an interactive element using keyboard, and not when the user clicks on it.

0
PhoenixDev22• 16,990

@PhoenixDev22

Posted

Greeting @Ayon95 ,

it is essential that interactive elements have focus-visible styles. These need to be really clear and obvious as they are needed to help a keyboard user know where is focused on the page. :focus-visible is used similarly to :focus: to bring attention to the element that currently has the focus.

I read this article about focus and focus visible

Hopefully it helps.

0
Mushfiq Rahman• 300

@Ayon95

Posted

@PhoenixDev22 Thanks for sharing. I read this article. Browsers already show default clearly visible focus styles when an interactive element is focused. The problem comes when the focus styles are shown when a user clicks on an interactive element (default behavior). Design specs may require you to hide those focus styles unless users navigate to interactive elements using a keyboard. That's when :focus-visible comes into play as explained in the article :)

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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