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

feat(curriculum): add numbers to modules and fixes #10805

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

fiji-flo
Copy link
Contributor

@fiji-flo fiji-flo commented Mar 27, 2024

This depends on mdn/curriculum#50

Summary

This resolves:


Screenshots

Before/After

Before After
image image
image image

How did you test this change?

Locally

This resolves:
- MP-948 Supporting numbers in the titles
- MP 949 Make sure to use modules instead of module
- MP-971 Add the group label on module pages
- #10734 and #10719 Makeing the whole module card a link
- Steamline one of the dark background colors
@@ -21,7 +29,7 @@
}
}

p {
p.module-topic {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Do we need to be this explicit?

Suggested change
p.module-topic {
.module-topic {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, but we can. That's a discussion for having CSS guidelines in the future.

@@ -32,6 +40,20 @@
content: "Category: ";
}
}

p.module-group {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: dito

Suggested change
p.module-group {
.module-group {

@@ -29,7 +29,9 @@ export function ModulesListList({
checked={i === tab}
onChange={() => setTab(i)}
/>
<label htmlFor={`module-${i}`}>{modulesList.title}</label>
<label htmlFor={`module-${i}`}>
{modulesList.title.replace(/ modules$/, "")}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we have title and short_title, instead of doing these replacements in the view?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, that's just for the representation in this specific place for now.

Co-authored-by: Claas Augner <[email protected]>
@fiji-flo fiji-flo changed the title [Do not merge yet] feat(curriculum): add numbers to modules and fixes feat(curriculum): add numbers to modules and fixes Apr 2, 2024
@fiji-flo fiji-flo merged commit 0f20809 into main Apr 2, 2024
15 checks passed
@fiji-flo fiji-flo deleted the MP-xxx-curriculum-updates branch April 2, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants