@doodl/slate 1.22.13 → 1.22.15

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,21 @@
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.15](https://bitbucket.org/doodlltd/slate/compare/v1.22.14...v1.22.15) (2023-06-26)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Resolve 'respond' mixin causing 'invalid CSS' error – workaround known bug in libsass ([5f1f04b](https://bitbucket.org/doodlltd/slate/commit/5f1f04b53d2c0f0fbbff3d0016c4db8a68dd63db))
11
+ * Resolve non-percentage arguments for SCSS scale-color fn throwing errors in dart sass ([4fcd689](https://bitbucket.org/doodlltd/slate/commit/4fcd689df6cf79ada215b9d851f76a3fa993a42d))
12
+
13
+ ### [1.22.14](https://bitbucket.org/doodlltd/slate/compare/v1.22.13...v1.22.14) (2023-06-14)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * Ensure that contained-button mixin generates a :visited state ([4057d0d](https://bitbucket.org/doodlltd/slate/commit/4057d0d48304c6e1d964d346c459611c8bbf0e3b))
19
+
5
20
  ### [1.22.13](https://bitbucket.org/doodlltd/slate/compare/v1.22.12...v1.22.13) (2023-06-01)
6
21
 
7
22
  ### [1.22.12](https://bitbucket.org/doodlltd/slate/compare/v1.22.11...v1.22.12) (2023-06-01)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doodl/slate",
3
- "version": "1.22.13",
3
+ "version": "1.22.15",
4
4
  "description": "",
5
5
  "main": "./js/dist/index.js",
6
6
  "module": "./js/dist/index.js",
package/scss/_mixins.scss CHANGED
@@ -3,8 +3,15 @@
3
3
  @import 'helpers';
4
4
 
5
5
  // Generate preset media query from breakpoint key
6
- @mixin respond($breakpoint) {
7
- @media #{map-get($slate-media-queries,$breakpoint)} {
6
+ @function media-query-from-breakpoint($breakpoint, $media: 'screen') {
7
+ $width: map-get($slate-breakpoints, $breakpoint);
8
+ @return '#{$media} and (min-width: #{$width})';
9
+ }
10
+
11
+ // Output content inside a media query for the defined breakpoint,
12
+ // e.g. @media screen and (min-width: 960px) {} when breakpoint 'medium' is passed
13
+ @mixin respond($breakpoint, $media: 'screen') {
14
+ @media #{media-query-from-breakpoint($breakpoint, $media)} {
8
15
  @content;
9
16
  }
10
17
  }
@@ -185,6 +192,10 @@
185
192
  @include assign-variable-property(background,$_background-colour,$key,--slate-button-background--,--contained);
186
193
  @include assign-variable-property(border-color,$_border-colour,$key,--slate-button-border-colour--,--contained);
187
194
 
195
+ &:visited {
196
+ @include button-colour-from-background($_background-colour,$colour,$key,--slate-button-,--contained--visited);
197
+ }
198
+
188
199
  &:active {
189
200
  @if type-of($background) == "map" {
190
201
  @if $_bg-lightness < 20 {
@@ -19,6 +19,10 @@
19
19
  }
20
20
  }
21
21
 
22
+ .text-center {
23
+ text-align: center;
24
+ }
25
+
22
26
  * + .text-columns {
23
27
  margin-top: $slate-default-spacing;
24
- }
28
+ }
@@ -12,6 +12,7 @@ $slate-breakpoints: (
12
12
  x-large: $slate-breakpoints-x-large
13
13
  ) !default;
14
14
 
15
+ // !Deprecated – @function media-query-from-breakpoint (def. in _mixins.scss) now handles this concatenation
15
16
  $slate-media-queries: (
16
17
  small: screen and (min-width: $slate-breakpoints-small),
17
18
  medium: screen and (min-width: $slate-breakpoints-medium),
@@ -82,15 +82,15 @@ $slate-button-border-colour-bad-override--contained: 0 !default;
82
82
  $slate-button-border-colour-bad-override--contained--hover: 0 !default;
83
83
  ////
84
84
 
85
- $slate-button-lighten-amount: 90 !default;
86
- $slate-button-darken-amount: 15 !default;
85
+ $slate-button-lighten-amount: 90% !default;
86
+ $slate-button-darken-amount: 15% !default;
87
87
  $slate-button-box-shadow--active: inset 0.05em 0.05em 0.5em !default; // Don't include the colour here
88
88
  $slate-button-background--contained: scale-color($slate-button-colour, $lightness: $slate-button-lighten-amount) !default;
89
89
  $slate-button-background--contained--lightness-correction-threshold: 80% !default;
90
90
  $slate-button-color--contained--lightness-correction: 25 !default;
91
91
 
92
- $slate-button-colour--disabled: scale-color($slate-button-colour,15%) !default;
93
- $slate-button-background--contained--disabled: scale-color($slate-button-background--contained,$lightness: -15%) !default;
92
+ $slate-button-colour--disabled: scale-color($slate-button-colour, $lightness: 15%) !default;
93
+ $slate-button-background--contained--disabled: scale-color($slate-button-background--contained, $lightness: -15%) !default;
94
94
 
95
95
  $slate-button-loader-fade-in-easing: $slate-animation-easing !default;
96
96
  $slate-button-loader-fade-in-timing: $slate-animation-timing !default;