Skip to content

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
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.

3 participants