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

And/migrate set custom colors #2

Merged
merged 3 commits into from
Jan 18, 2024

Conversation

andrey-canon
Copy link
Collaborator

Description:

There are 3 commits

  1. This is a cherry pick from feat: add set custom primary colors method in initialize flow eduNEXT/frontend-platform#6
  2. That fixes the tests
  3. Adds compatibility with the PARAGON_THEME_URL, in this case if the settings PARAGON_THEME_URL has been set the method will ignore the set_custom_colors logic otherwise this is going to work like it did before.

How to test

  1. Follow the instructyions of this pr

@andrey-canon andrey-canon force-pushed the and/migrate_set_custom_colors branch from 5336c16 to 858a4a6 Compare January 16, 2024 23:25
Copy link

@johanseto johanseto left a comment

Choose a reason for hiding this comment

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

I tested in my local and works as desired.
having priority the PARAGON_THEME_URLS over the CUSTOM_PRIMARY_COLORS
Screencast from 17-01-24 14:46:10.webm

const primary = CUSTOM_PRIMARY_COLORS['pgn-color-primary-base'];

if (!primary) {
if (!primary || PARAGON_THEME_URLS != null) {

Choose a reason for hiding this comment

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

This make me thing... whatever you define with the var PARAGON_THEME_URLS in the mfe_config would discard the CUSTOM_PRIMARY_COLORS feature. But for the moment seems functional.

@andrey-canon andrey-canon force-pushed the and/migrate_set_custom_colors branch from 858a4a6 to 8a3c344 Compare January 18, 2024 00:10
@andrey-canon andrey-canon merged commit 86b1b36 into open-release/palm.nelp Jan 18, 2024
3 checks passed
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