@doodl/slate 1.22.10 → 1.22.11

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.22.11](https://bitbucket.org/doodlltd/slate/compare/v1.22.10...v1.22.11) (2023-06-01)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Handling of highlight colour mapping when highlight colour is not one of primary colour or secondary colour ([d6de398](https://bitbucket.org/doodlltd/slate/commit/d6de3987af317ec6023f4f8445efa020db15bd15))
11
+
5
12
  ### [1.22.10](https://bitbucket.org/doodlltd/slate/compare/v1.22.9...v1.22.10) (2023-06-01)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doodl/slate",
3
- "version": "1.22.10",
3
+ "version": "1.22.11",
4
4
  "description": "",
5
5
  "main": "./js/dist/index.js",
6
6
  "module": "./js/dist/index.js",
@@ -19,13 +19,11 @@ $slate-primary-colour-map: build-colour-map(slate-primary-colour,$slate-primary-
19
19
  $slate-secondary-colour-map: build-colour-map(slate-secondary-colour,$slate-secondary-colour) !default;
20
20
  // Provide some sensible defaults for highlight colour if it matches
21
21
  // Primary or secondary colour
22
- $_slate-highlight-colour-map-candidate: "";
22
+ $_slate-highlight-colour-map-candidate: build-colour-map(slate-highlight-colour,$slate-highlight-colour);
23
23
  @if $slate-highlight-colour == $slate-primary-colour {
24
24
  $_slate-highlight-colour-map-candidate: $slate-primary-colour-map;
25
25
  } @else if $slate-highlight-colour == $slate-secondary-colour {
26
26
  $_slate-highlight-colour-map-candidate: $slate-secondary-colour-map;
27
- } @else {
28
- $_slate-highlight-colour-map-candidate: build-colour-map(slate-highlight-colour,$slate-highlight-colour) !default;
29
27
  }
30
28
  $slate-highlight-colour-map: $_slate-highlight-colour-map-candidate !default;
31
29
  $slate-info-colour-map: build-colour-map(slate-info-colour,$slate-info-colour) !default;