Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
Built with. 🔨
- HTML & CSS.
- TypeScript.
- Vite.
New Things Learned. 🎓
- To allow images to scale beyond their original file dimensions, you have to use
width: 100%
rather thanmax-width: 100%
. For example, an image sized at576px X 576px
won’t expand beyond576px
ifmax-width: 100%
is applied. - Inline SVGs need to have the
viewBox
attribute. Without it, the SVG won’t scale with the browser’s root font size, even if you’ve set itswidth
andheight
in rem within CSS. - I initially used
aria-expanded
, but i was told it's only for disclosure patterns. Since this was a popover, i changed it to anaria-haspopup="dialog"
.
Note. 📌
- I changed the colors a bit since the colors in the design file had very poor contrast ratios.
Any sort of feedback is appreciated.
Community feedback
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