-
Notifications
You must be signed in to change notification settings - Fork 197
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
Use block button styles for quiz actions #4023
Conversation
Added the CSS to display correctly in all cases @ a25f369 |
includes/class-sensei-quiz.php
Outdated
|
||
<?php } // End If Statement ?> | ||
|
||
<?php if ( isset( $reset_quiz_allowed ) && $reset_quiz_allowed ) { ?> | ||
<?php if ( true || isset( $reset_quiz_allowed ) && $reset_quiz_allowed ) { ?> |
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.
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.
Once the debug code is removed, I think this is ready 🚢 .
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.
Looks good!
Closes #3973
This is a temporary solution to make sure that buttons on the quiz page don't stand out for new courses that use block-based buttons everywhere else. We'll want to to a wider revamp of Sensei's frontend styles in the future.
Changes proposed in this Pull Request
Testing instructions
Compatibility, template changes
While this change tries to not break things, some custom CSS made for Sensei buttons might have to be updated:
input[type=submit]
=>button
).quiz
=>.quiz:not(.quiz-blocks)
)Screenshot / Video
Blocks:
Not blocks: