INTERACTIVE RATING COMP π― [ ACCESSIBLE - BEM - VANILLA CSS3 - ES6 ]
Design comparison
Solution retrospective
πΎ Hello, Frontend Mentor Community,
This is my solution for the Interactive Rating Component.
100%
Accessible solution withform
integration, you check by pressingtab
key along withβ
&β
to traverse your rating selection finally hitenter
to submit your result- Learned the usage of
fieldset
,legend
, &radio
input elements to build well accessible form - Scored
99.5%
on Google Pagespeed Insights! π€© - Actually it's been overwhelmed at this part because of performance issues. So i injected the
css
andjs
inside thehtml
file itself to improve site performance. results86%
=>99.5%
π - Used
Prettier
code formatter to ensure unified code format βοΈ - Layout was built responsive via mobile first workflow approach π²
- Had a lots of fun while building this challenge ! π€
- Feel free to leave any feedback and help me to improve my solution π‘
.
π¨βπ¬ Follow me in my journey to finish all newbie challenges to explore solutions with custom features and tweaks
Ill be happy to hear any feedback and advice !
Community feedback
- @visualdennissPosted over 1 year ago
Feels elegant and smooth. Great job with it. Only a minor detail, which i've believe you have forgotten is to add cursor: pointer; to the hover states of radio btns to indicate user that they are interactive elements. Keep up the good work!
Marked as helpful1@0xabdulkhaliqPosted over 1 year agoGlad you come up with an acceptable suggestion @visualdenniss!
- I just already applied
cursor: pointer
for thediv
, but seems it's not working so i tried to add thecursor
for the label itself it gonna work
- Once again thank you mate!
0@visualdennissPosted over 1 year ago@0xAbdulKhalid Happy to hear it was something useful!
That's a really strange issue and more complex than i thought. I'm not so familiar with radio buttons, but when i tested it on the dev tools now adding cursor:pointer; for only label itself works only with the selected button. π€
0@0xabdulkhaliqPosted over 1 year agoI'm also experiencing something weird here @visualdenniss,
- I updated the css code with
cursor: pointer
for thelabel
elements to get the job done - But the issue is the deployed site has not been updated yet, but the workflow has successfully run after editing the code
- I wonder why this weird thing is happening π
0 - I just already applied
- Account deleted
This comment was deleted over 1 year ago
1@0xabdulkhaliqPosted over 1 year agoGlad to receive suggestion from you @MrSandipSharma!
- Can you tell, in what mobile device you tested this site ?
- So that i can also test the site according to the device screen size for simulation and test it for sure
0 - @CornflakesPlusPosted over 1 year ago
Great job! Abdul Khaliq.
Nice and clean code, nice Read Me structure as well. For the Screen Reader Only file (
sr_only
), the CSS you used is a general copy-paste? Also, how did you get the badges in the Read Me file?0@0xabdulkhaliqPosted over 1 year agoBro @CornflakesPlus,
- I can't understand what you're asking, the css using for
sr_only
class is crafted with care because if anything misses then thesr_only
element will fail to work as intendend. So every solution will consists the samesr_only
styles (they are crafted by accessibility experts)
- And next, the badges for the
README.md
file is not available, because it was manually build by developers like us.
- We want to use
badge.io
api and any icons you wish fromsimpleicons
just merge them and see the action
Hope am helpful!
1 - I can't understand what you're asking, the css using for
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