NPM Resource Changed PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar richard67
richard67
3 Sep 2023

Pull Request for https://github.com/joomla/joomla-cms/pull/41409/files#r1314271898 .

Summary of Changes

Fix SCSS compilation which was broken with #41409 .

Maybe it needs more to be fixed, so let's wait for drone.

Testing Instructions

Run npm ci or check the NPM step on drone.

Actual result BEFORE applying this Pull Request

Error: Undefined variable.
   ╷
12 │ $form-select-background-dark:      $form-select-indicator-dark no-repeat right center / $form-select-bg-size; // Used so we can have multiple background elements (e.g. arrow and feedback icon)
   │                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
  build/media_source/templates/administrator/atum/scss/_variables-dark.scss 12:36  @import

Expected result AFTER applying this Pull Request

Success.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 3 Sep 2023
Category Repository NPM Change
avatar richard67 richard67 - open - 3 Sep 2023
avatar richard67 richard67 - change - 3 Sep 2023
Status New Pending
avatar richard67 richard67 - change - 3 Sep 2023
The description was changed
avatar richard67 richard67 - edited - 3 Sep 2023
avatar richard67
richard67 - comment - 3 Sep 2023

@dgrammatiko Could you check if it needs more to be fixed from PR #41409 ?

avatar richard67
richard67 - comment - 3 Sep 2023

NPM still fails. It seems the $form-select-indicator-dark and possibly others are not defined.

avatar brianteeman
brianteeman - comment - 3 Sep 2023

This si wrong. You said the variable is not defined and then still use the variable

avatar richard67 richard67 - change - 3 Sep 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-09-03 15:03:48
Closed_By richard67
Labels Added: NPM Resource Changed PR-5.0-dev
avatar richard67
richard67 - comment - 3 Sep 2023

This si wrong. You said the variable is not defined and then still use the variable

I know. It was a test if there is a syntax error. Closing as it seems to be wrong also regarding the purpose of that CSS, and hoping @dgrammatiko will be available to check and provide a fix.

avatar richard67 richard67 - close - 3 Sep 2023
avatar Fedik
Fedik - comment - 3 Sep 2023

Need to swap lines:

$form-select-indicator-dark:       url("../images/select-bg-dark.svg");
$form-select-indicator-rtl-dark:   url("../images/select-bg-rtl-dark.svg");
$form-select-bg-dark:              var(--template-bg-dark);
$form-select-background-dark:      $form-select-indicator-dark no-repeat right center / $form-select-bg-size; // Used so we can have multiple background elements (e.g. arrow and feedback icon)
$form-select-background-rtl-dark:  $form-select-indicator-rtl-dark no-repeat left center / $form-select-bg-size; // Used so we can have multiple background elements (e.g. arrow and feedback icon)

However there some more issues

avatar richard67
richard67 - comment - 3 Sep 2023

@Fedik I only need npm to complete without error in the 5.0-dev branch for the other PR's which I currently am helping with, the task scheduler stuff from Nicola.

avatar Fedik
Fedik - comment - 3 Sep 2023

I tried another one #41567

Try using a css var like I do in the muta

That something like rewrite, not fixing ?

avatar dgrammatiko
dgrammatiko - comment - 3 Sep 2023

@Fedik: well, what do I know ?

Add a Comment

Login with GitHub to post a comment