Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redesigned the Rate Music page #315

Merged
merged 6 commits into from
Aug 29, 2022

Conversation

wyenelle
Copy link
Contributor

πŸ› οΈ Added a new Rating Page

image

πŸ“„ Note to reviewers

πŸ“· Screenshots

Original Updated
** original screenshot ** updated screenshot **

@netlify
Copy link

netlify bot commented Aug 27, 2022

βœ… Deploy Preview for mogulchristmas ready!

Name Link
πŸ”¨ Latest commit cb1ffba
πŸ” Latest deploy log https://app.netlify.com/sites/mogulchristmas/deploys/630cd2b546126e000ab5965e
😎 Deploy Preview https://deploy-preview-315--mogulchristmas.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are accessibility issues in these changes.

<form name="rating" netlify>

<label class="song-name">Song Name:</label><br/><br/>
<select class="select" name="song[]">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.



<label class="">Rating - Out of 10 : <span id="demo"></span></label><br/><br/>
<input type="range" id="rating" class="rating" max="10" step="1" onchange="handleChange()" required/><br/><br/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

@wyenelle
Copy link
Contributor Author

tell me if the design sare cool enough,then maybe you can provide a pattern I can follow

rating/index.js Outdated
@@ -0,0 +1,8 @@
// get the input
let rating = document.getElementById('rating')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ESLint] 'rating' is never reassigned. Use 'const' instead. (view)

Rule Severity Recommended
prefer-const warn No

References:

You can close this issue if no need to fix it. Learn more.

rating/index.js Outdated

// handles changes in the input and renders values to the screen
function handleChange(){
let res = document.getElementById('demo')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ESLint] 'res' is never reassigned. Use 'const' instead. (view)

Rule Severity Recommended
prefer-const warn No

References:

You can close this issue if no need to fix it. Learn more.

Copy link
Owner

@KendallDoesCoding KendallDoesCoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! But there's only one problem.. Right now the slider of rating sets to the middle, so people may consider that as half, but it actually doesn't rate anything, so it's "0" so I don't want the user to be able to submit if they haven't used to slider at all/to rate.

@KendallDoesCoding KendallDoesCoding mentioned this pull request Aug 28, 2022
2 tasks
Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are accessibility issues in these changes.

<form name="rating" id="submit" netlify>

<label class="song-name">Song Name:</label><br/><br/>
<select class="select" name="song[]">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

@KendallDoesCoding KendallDoesCoding merged commit f6ebc4f into KendallDoesCoding:main Aug 29, 2022
@KendallDoesCoding
Copy link
Owner

KendallDoesCoding commented Aug 29, 2022

Thanks a lot for your contribution... I really like the design and am sure this took you lots of time to put together @wyenelle

@KendallDoesCoding
Copy link
Owner

@all-contributors please add @wyenelle to the doc

@allcontributors
Copy link
Contributor

@KendallDoesCoding

I've put up a pull request to add @wyenelle! πŸŽ‰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants