Skip to content

Feedback button changes.#1440

Draft
somiaj wants to merge 1 commit into
openwebwork:PG-2.21from
somiaj:feedback-changes
Draft

Feedback button changes.#1440
somiaj wants to merge 1 commit into
openwebwork:PG-2.21from
somiaj:feedback-changes

Conversation

@somiaj

@somiaj somiaj commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

I am using this PR as a discussion (so it is a draft). I'm unsure what others will think of these changes, but this is to address two issues I have with the feedback buttons. I have attempted to implement suggested changes to address the issues.

The first is themes can change the feedback button colors since they are using the bootstrap color classes. This may not be desirable that the feedback buttons match the webwork button colors, so new classes are created for the feedback buttons that can be themed independently of the bootstrap classes.

The second is when $showPartialCorrectAnswers=0 and the student didn't get the problem correct, the feedback looks like a "Preview Answers" and it confuses students as they think they hit "Preview Answers" and not "Submit Answer" button. This makes it so the feedback has its own look for this case. It uses the yellow color for partially correct, a title of "Unknown" (I think something better could be used here to indicate it is unknown if the answer is correct or incorrect) and a question mark in a circle as the icon (my question mark needs to be improved, I had trouble finding a good SVG question mark).

This changes the feedback buttons in two ways.

1) Use copies of the bootstrap classes to color buttons. This way the
   feedback colors don't get changed by theming on the client side.
   The themes can still modify the actual classes used to change
   the buttons if desired, but the feedback buttons themselves can be
   themed independently of other bootstrap buttons.

2) Create a new feedback class "unknown" to use when showing the
   results of a problem with `$showPartialCorrectAnswers=0`. Currently
   on problems with limited feedback, it can be unclear to the student
   that they actually submitted the answer vs previewed the answer.
   This is accomplished by marking the buttons as incorrect if
   no answer is correct (0% on the problem), and marking them
   as "unknown" which shows a yellow button with a question mark
   in a circle if the problem is partially correct.
@somiaj somiaj marked this pull request as draft June 14, 2026 02:12
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

Successfully merging this pull request may close these issues.

1 participant