-
Notifications
You must be signed in to change notification settings - Fork 16
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
polls: add new django setting to enable or disable the unregistered poll #1692
Conversation
voting - add missing changelog
d77d98e
to
0aefe90
Compare
{props.enableUnregisteredUsers && | ||
<div> | ||
<label htmlFor="allowUnregisteredUsersCheckbox">Allow unregistered user to vote</label> | ||
<input type="checkbox" id="allowUnregisteredUsersCheckbox" onChange={() => setAllowUnregisteredUsers((state) => !state)} checked={allowUnregisteredUsers} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could use a couple more attributes:
aria-checked={allowUnregisteredUsers} // Adds an ARIA attribute for screen readers
aria-label="Toggle allowing unregistered users to vote"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hom3mad3 are you ok with us collecting these things for the ui refactor story for now instead of fixing them as part of this issue ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, because now with the new backend changes we keep making the code worse. could you guys maybe make a list of stuff you encounter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ for the react stuff, didn't have a look at the serializers.py file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
voting
required to e.g. disable it in meinBerlin for now (or other forks of a+)
Tasks