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

Frontend Mentor - Recipe page

paulDev 440

@dev-paulL

Desktop design screenshot for the Recipe page coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What specific areas of your project would you like help with?

  • What would be the expected accessibility features on this type of component? I guess each category should be accessible with tab key?

Community feedback

Alex 3,130

@Alex-Archer-I

Posted

Hey, well done, neat work =)

I don't really think that every part should be tabbable as it mostly for interactive elements not for scrolling.

And I guess you shouldn't skip the titles hierarchy - I mean I understand why you didn't use h1 here but otherwise that is better when they follow their order. And "preparation time" could be h3 too.

(Actually I did it the same way, but I was wrong then =))

Marked as helpful

0

paulDev 440

@dev-paulL

Posted

@Alex-Archer-I Haha welcome back 👋 Thank you for your second feedback

That's true.

I tried to make all the text blocks in li aligned (I hope that makes sense) but didn't find how to do it. Do you remember?

1
Alex 3,130

@Alex-Archer-I

Posted

@dev-paulL

Do you mean align with the markers? In that case options are very limited. Maybe, it's better to replace them with before or after pseudo-elements.

0
paulDev 440

@dev-paulL

Posted

@Alex-Archer-I I thought about it last night😂 I tried again this morning and made it work without before and after. (repo is updated)

1
Alex 3,130

@Alex-Archer-I

Posted

@dev-paulL

I looked through your repo, but can't catch what exactly solved the problem =)

Is it font-weight for the markers? Or line-height for the text? Or margin-padding combination?

0
paulDev 440

@dev-paulL

Posted

@Alex-Archer-I Hmm, I think I removed the list-style-position:inside and that's it. I must've forgot to delete it from my style after trying different things 😴

1
Alex 3,130

@Alex-Archer-I

Posted

@dev-paulL

Oh, than I didn't get you at first! I thought you want to align markers vertically so that they are on the top of the line.

That makes more sense now =)

Glad that you manage to find a solution.

0
paulDev 440

@dev-paulL

Posted

@Alex-Archer-I

Yes, I meant that the entire block of text in the lists should have a margin on the left. As you can see in the screenshot (it didn't update for some reason), the text 'wraped' around the marker.

1
P

@marc-regnier

Posted

Great work, but be careful with the dimensions and the font, as they're not the same as on the model. Otherwise, the HTML is well structured.

0

paulDev 440

@dev-paulL

Posted

👋 Thanks for the feedback, @marc-regnier! You're right. On desktop, the sizes look a bit different, though it's very similar to the original on mobile.

I made a few changes and added a new screenshot to the GitHub repo. 👍

0

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