-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
move feedback message to top of feedback card #975
Conversation
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.
This looks good to me. What additional styling adjustments do you thing are needed? I don't see anything that looks wrong to me.
I can't put my finger on it. The transition from the message to the h4 below it sometimes seems off to me, depending on the size of the message. And maybe it matters that the headers below (h4) feel heavier than the h3 at the top of the card. Maybe it's how the yellow message background color has 1:1 contrast ratio with the gray color of the h4 below it. That might explain what I see with the transition from the message to the header below it. Anyway, I'm not really sure. I'm fine with just leaving it, while still wondering if others see what I see and have ideas. |
None of it looks that off to me, but would it help if there were a black border on the bottom of the feedback message? Perhaps also on the top of the feedback message? Or perhaps just a border all around the feedback message? |
Yeah, a border on the bottom of the feedback really helps. Is it better implemented as a CSS border or an |
Whatever you think works best. Another option I thought of is an inset box shadow. |
Also, it isn't hard to implement a border on the bottom with css that is only there if the message is not the last child. |
Looks good. I noticed another issue though (not caused by this pull request). I wanted to test the case that there is nothing below the message. So I used the following problem:
I noticed that the feedback message card body does not get the border radius of the popover, and so the background color doesn't look the best. |
No, it is just the background color, and it is not just in this pull request. It is how it already is. If you add
To the feedback message it is a little better. That is the border radius of the popover, but it still doesn't quite match up right. |
To see this check answers with that problem without entering an answer. |
I had to look real hard to see that. I think my red/green color blindness blurs the yellow and gray together a bit and I have to get pretty close to the screen to see the radius issue. That blurring of yellow and gray is probably what was bothering me before the black border too. |
What should happen when there is a message, but no overall header? Like in the screenshot with Preview Answers? |
Hmm, I am not sure. That is a problem introduced with this pull request. Maybe we just need to make sure there is always a header. So for a preview, perhaps make the title "Preview Only". |
I fixed the radius, I think. It seemed that I needed to use I added a header for when the popover is just preview. And I noticed the cursor over the main header was only turning to a pointer when the feedback was "correct". I changed it to always be a pointer on the feedback card header, regardless of feedback type. |
OK, I think I figured out it should be |
There is a problem now for essay questions. The problem is that the To fix this, I suggest that instead of adding the "preview" class, revert to allowing the It might be a good idea to add a comment to the POD regarding the It is important to remember with these settings used in PG.pl for this that custom answer types (like the essay answers) can override any of the options set in the |
OK, I think I addressed that now. This is unrelated to this PR, but ideally an essay answer title would not always be "Ungraded" and the message would not always be "This answer will be graded at a later time." Ideally it would recognize that it's been assigned a score since the last time an answer was submitted, and it would give responses based on that. |
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.
This looks nice. I like the message at the top. Also, tested an essay question and I think the last commit fixed the error @drgrice1 pointed out.
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.
This is looking really nice -- I much prefer having the feedback message at the top 👍
macros/PG.pl
Outdated
@@ -827,8 +827,8 @@ =head2 ENDDOCUMENT | |||
=item * | |||
|
|||
C<resultClass>: This is the CSS class that is added to each answer input in the | |||
response group. By default it is set to the empty string, "correct", | |||
"incorrect", or "partially-correct" depending on the status of the answer and | |||
response group. By default it is set to "preview", "correct", "incorrect", |
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.
This is now set to the empty string by default again.
Co-authored-by: Glenn Rice <[email protected]>
This moves the feedback message to the top of the card, as discussed in the #939 thread.
I'm not sure about it yet. Additionally styling adjustments might be in order.