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

Star-Rating Order reversed #59

Open
resta3000 opened this issue Jun 10, 2024 · 3 comments
Open

Star-Rating Order reversed #59

resta3000 opened this issue Jun 10, 2024 · 3 comments

Comments

@resta3000
Copy link

resta3000 commented Jun 10, 2024

Hi,

the order of the stars is reversed for the evaluation function via CSS (RTL), so the results are also reversed by the users when voting.

@bihor
Copy link
Owner

bihor commented Jun 20, 2024

At which site?
The evaluation of the own submit looks good:
https://www.quizpalme.de/quiz-umfrage/umfragen/besucher-umfrage
Do you mean the evaluation of all entries?

@resta3000
Copy link
Author

resta3000 commented Jun 25, 2024

Auf der Seite: https://www.quizpalme.de/quiz-umfrage/umfragen/besucher-umfrage
befindet sich im zweiten Schritt eine Frage "Wie glücklich bist du?", diese Frage wird per Rating-Stars bewertet.
Die fünf Werte der darunter liegenden Form Elemente belaufen sich von 388 bis 392 (Stern 1 bis 5).
Durch den CSS Stil der Rating-Stars (.star-cb-group { direction: rtl; }) wird die Reihenfolge umgekehrt, d.h. dass wenn ein Nutzer fünf Sterne vergeben möchte, wird der Wert 388 eingetragen.
Bei uns führt das zu genau umgekehrten Ergebnissen in der Auswertung.

@bihor
Copy link
Owner

bihor commented Jun 25, 2024

Nun, die Funktionsweise ist von hier:
https://codeconvey.com/css-star-rating-radio-buttons/
D.h. man muss zuerst die 5-Sterne im Backend anlegen. 388 ist also 5 Sterne.
Ist vielleicht die Reihenfolge im Backend anders herum?
quiz7

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

No branches or pull requests

2 participants