Submitted about 3 years ago
Interactive pricing component with Svelte and TailwindCSS
@vinaypuppal
Design comparison
SolutionDesign
Solution retrospective
Any feedback is welcome! Thanks
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Layout in general looks great.
Some suggestions would be:
- When wrapping a text-content do not just use
div
to wrap it, use meaningful element like ap
tag if it just a regular text or heading tag if it is an heading. - The range-input currently lacks visual indicator when tabbing on it, it would be great to add some visual on the
:focus-visible
state of theinput
, like giving outline on the slider-thumb. - On the billing-section, you should have not used checkbox on it, rather use radio buttons since it is a selection. Those 2 text besides the toggle are the
label
for each radio button. You will need to nest the 2 radio buttons inside afieldset
along with an screen-reader only legend that will described what is the purpose of those radio buttons, it could use a text-content like "billing section". Take a look at this old solution of mine on this challenge though this is a old solution and still haven't refactored yet so that is whyfieldset
andlegend
are not used in here but the functionality of the 2 radio buttons are used in here. start my trial
button
should have better:focus-visible
state, right now it is hard to tell whether it has focus or not.- Lastly, maybe wrapping the whole component inside a
form
since this will be a form in real site and thatbutton
should havetype="submit"
.
Aside from those, great job again on this one.
1 - When wrapping a text-content do not just use
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