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

Style the "Awaiting Grade" notice #7401

Merged

Conversation

donnapep
Copy link
Contributor

@donnapep donnapep commented Oct 2, 2023

Changes proposed in this Pull Request:

Tweaks the styles of the "Awaiting Grade" notice for each theme variation.

Testing Instructions

See Automattic/sensei#7197

Related issue(s):

Automattic/sensei#7074

@donnapep donnapep added this to the Course 1.3.4 milestone Oct 2, 2023
@donnapep donnapep self-assigned this Oct 2, 2023
@donnapep donnapep requested review from a team and removed request for a team October 2, 2023 21:03
@donnapep donnapep linked an issue Oct 3, 2023 that may be closed by this pull request
@@ -670,6 +670,9 @@
},
"css": "& .sensei-lms-course-navigation-module__summary { font-family: var(--wp--preset--font-family--system); }"
},
"sensei-lms/course-theme-notices": {
"css": "& .sensei-course-theme-quiz-graded-notice__title { font-family: var(--wp--preset--font-family--system); font-size: clamp(1.5rem, 1.167rem + 1.111vw, 2rem); font-weight: 590; } .sensei-course-theme-quiz-graded-notice__text { font-size: clamp(1.25rem, 1.083rem + 0.556vw, 1.5rem); line-height: 1.3; } .sensei-course-theme-quiz-graded-notice__reset-quiz-form .sensei-course-theme__button { font-size: clamp(1.313rem, 1.188rem + 0.417vw, 1.5rem); }"
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think converting this title to a heading element like h3 can be a good idea rather than styling the div content to make it look like a title heading? Then we can also style it without CSS by using the elements->h3 property here. That'll also probably make .sensei-course-theme-quiz-graded-notice__text stylable using the 'typography' property instead.

Copy link
Contributor Author

@donnapep donnapep Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice suggestion! I'm made some changes to this PR and also to Sensei:
Automattic/sensei@57f6d8a
Automattic/sensei@d3ddc7b

Note that I made it an h2 in order for the HTML to be semantic.

Copy link
Contributor

@Imran92 Imran92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🚀 I just left a small comment which may be an improvement if works and helps us write less CSS here.

Base automatically changed from feature/frontend-improvements to trunk October 12, 2023 17:48
@donnapep donnapep modified the milestones: Course 1.3.4, Course 1.3.5 Oct 14, 2023
@donnapep donnapep changed the base branch from trunk to feature/frontend-improvements October 16, 2023 19:53
@donnapep donnapep modified the milestones: Course 1.3.5, Course 1.3.6 Oct 31, 2023
Copy link
Contributor

@Imran92 Imran92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, added a small fix here ef0d5ca as the style wasn't getting applied on the notice text for me otherwise

Screenshot 2023-11-01 at 1 57 40 PM

@donnapep
Copy link
Contributor Author

donnapep commented Nov 1, 2023

Looks good, added a small fix here ef0d5ca as the style wasn't getting applied on the notice text for me otherwise

That's weird. I wonder why it would work for me but not you. 🙁

@donnapep donnapep modified the milestones: Course 1.3.6, Course 1.3.5 Nov 1, 2023
@Imran92
Copy link
Contributor

Imran92 commented Nov 1, 2023

Looks good, added a small fix here ef0d5ca as the style wasn't getting applied on the notice text for me otherwise

That's weird. I wonder why it would work for me but not you. 🙁

True, could be another Gutenberg issue. Maybe you can check with Gutenberg enabled?

@donnapep donnapep merged commit 1a150bb into feature/frontend-improvements Nov 1, 2023
@donnapep donnapep deleted the update/awaiting-grade-notice branch November 1, 2023 11:36
renatho pushed a commit that referenced this pull request Nov 1, 2023
* Update styles of question feedback (#7373)

* Specify the grade style to be applied only in the question header

* Update background color for gold variation

* Update background color for default variation

* Update border color for gold variation

* Tweak CSS formatting

* Tweak color for border of ordering question

---------

Co-authored-by: Donna Peplinskie <donnapep@gmail.com>

* Update version and description

* Add new changelog

* Remove legacy Learning Mode CSS as it's part of Sensei now (#7431)

* Course: Add body class for theme variations (#7432)

* Add custom property with variation name

* Add function to add body class and enqueue proper stylesheets

* Add stylesheets for all variations

* Add version number

* Style the "Awaiting Grade" notice (#7401)

* Style "Awaiting Grade" notice

* Move custom CSS to other areas of theme.json

* Remove typography setting as it needs to be done via CSS

* Do the same for the variations

* Fix notice style getting broken for css parsing issue

---------

Co-authored-by: Imran Hossain <imranh920@gmail.com>

* Bump versions and update change log

---------

Co-authored-by: Imran Hossain <imranh920@gmail.com>
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.

Update "Awaiting Grade" notice in Learning Mode
2 participants