@doodl/slate 1.22.10 → 1.22.12

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,20 @@
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.12](https://bitbucket.org/doodlltd/slate/compare/v1.22.11...v1.22.12) (2023-06-01)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Inconsistency in default sticky menu bar styling compared to standard menu bar ([f47952b](https://bitbucket.org/doodlltd/slate/commit/f47952b9cede966c8439103e16dc03673bf2606b))
11
+
12
+ ### [1.22.11](https://bitbucket.org/doodlltd/slate/compare/v1.22.10...v1.22.11) (2023-06-01)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 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))
18
+
5
19
  ### [1.22.10](https://bitbucket.org/doodlltd/slate/compare/v1.22.9...v1.22.10) (2023-06-01)
6
20
 
7
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doodl/slate",
3
- "version": "1.22.10",
3
+ "version": "1.22.12",
4
4
  "description": "",
5
5
  "main": "./js/dist/index.js",
6
6
  "module": "./js/dist/index.js",
@@ -13,6 +13,12 @@
13
13
  > li {
14
14
  > a {
15
15
  color: $slate-sticky-menu-bar-items-colour--stuck;
16
+ &:visited {
17
+ color: $slate-sticky-menu-bar-items-colour--visited--stuck;
18
+ }
19
+ &:hover {
20
+ color: $slate-sticky-menu-bar-items-colour--hover--stuck;
21
+ }
16
22
  }
17
23
  }
18
24
  }
@@ -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;
@@ -1,5 +1,6 @@
1
1
  @import '../variables/colours';
2
2
  @import '../variables/animations';
3
+ @import '../variables/menu-bar';
3
4
 
4
5
  $slate-sticky-menu-bar-transition--stuck: background $slate-animation-timing $slate-animation-easing !default;
5
6
  $slate-sticky-menu-bar-drop-shadow--stuck: 0 2px 2px transparentize($slate-black,0.8) !default;
@@ -8,4 +9,6 @@ $slate-sticky-menu-bar-transition: $slate-sticky-menu-bar-transition--stuck !def
8
9
  $slate-sticky-menu-bar-will-change: background !default;
9
10
 
10
11
  $slate-sticky-menu-bar-background--stuck: $slate-black !default;
11
- $slate-sticky-menu-bar-items-colour--stuck: $slate-white !default;
12
+ $slate-sticky-menu-bar-items-colour--stuck: $slate-white !default;
13
+ $slate-sticky-menu-bar-items-colour--visited--stuck: $slate-menu-bar-items-colour--visited !default;
14
+ $slate-sticky-menu-bar-items-colour--hover--stuck: $slate-menu-bar-items-colour--hover !default;