@genexus/mercury 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -81,7 +81,7 @@ npm i @genexus/mercury
81
81
  npm i -D sass
82
82
  ```
83
83
 
84
- 2. Add a config file in your project to determine the path to the assets.
84
+ 2. Add a config file (called `config.scss`) in your project to determine the path to the assets.
85
85
  Include the following configuration:
86
86
 
87
87
  ```scss
@@ -62,10 +62,12 @@ export const getIconPath = (iconMetadata, vendorAlias = MERCURY_ALIAS) => {
62
62
  */
63
63
  export const getIconPathExpanded = (iconMetadata, iconMetadataExpanded, vendorAlias = MERCURY_ALIAS) => `${getIconPath(iconMetadata, vendorAlias)}${EXPANDED_SEPARATOR}${getIconPath(iconMetadataExpanded, vendorAlias)}`;
64
64
  const getCustomFullValue = (iconName, vendorAliasOrName, suffix) => {
65
- const vendorPrefix = vendorAliasOrName === MERCURY_ALIAS ? "" : `${vendorAliasOrName}-`;
65
+ const vendorPrefix = vendorAliasOrName === MERCURY_ALIAS
66
+ ? ""
67
+ : `-${vendorAliasOrName}`;
66
68
  return suffix
67
- ? `var(--icon__${vendorPrefix}${iconName}--${suffix})`
68
- : `var(--icon__${vendorPrefix}${iconName})`;
69
+ ? `var(--icon${vendorPrefix}__${iconName}--${suffix})`
70
+ : `var(--icon${vendorPrefix}__${iconName})`;
69
71
  };
70
72
  /**
71
73
  * Parses the incoming iconMetadata, assuming Mercury as the default vendor if