Skip to content

feat!: upgrade to Paragon v23 and design tokens #6

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

@coveralls
Copy link

Pull Request Test Coverage Report for Build 15714850646

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 55.335%

Totals Coverage Status
Change from base Build 14900020086: 0.0%
Covered Lines: 168
Relevant Lines: 306

💛 - Coveralls

Copy link
Member Author

@ilee2u ilee2u left a comment

Choose a reason for hiding this comment

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

NOTE: All of the code comments below are copy/pasted from https://github.com/edx/frontend-plugin-advertisements/pull/93/files

"@edx/frontend-component-footer": "14.7.1",
"@edx/frontend-component-header": "6.4.0",
"@edx/frontend-platform": "8.3.5",
"@openedx/paragon": "^22.17.0",
"@openedx/paragon": "^23.0.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

🚨 [inform] Breaking change! Drops support for v22.

@@ -27,11 +27,10 @@
},
"dependencies": {
"@cospired/i18n-iso-languages": "^2.0.2",
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.2",
Copy link
Member Author

Choose a reason for hiding this comment

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

[inform] @edx/brand is not directly used within this project (no imports, etc.), so we're opting to remove it from these dependencies.

Comment on lines -4 to -7
@import "~@edx/brand/paragon/fonts";
@import "~@edx/brand/paragon/variables";
@import "~@openedx/paragon/scss/core/core";
@import "~@edx/brand/paragon/overrides";
Copy link
Member Author

Choose a reason for hiding this comment

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

[inform] Previously would re-import all of Paragon's styles as duplicate CSS on top of the Paragon CSS already downloaded/used by the MFE itself. Rather than this import, ideally this package would have imported this stylesheet into the package's styles entrypoint vs. re-importing all of Paragon just to make SCSS variables work.

Either way, with Paragon v23 and CSS variables, these custom styles no longer use SCSS variables/functions so this import should be removed.

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.

2 participants