@flourish/ui-styles 5.0.1 → 5.0.2

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/RELEASE_NOTES.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 5.0.2
2
+ * Set slider-label box-sizing to content-box so that padding is included
3
+
1
4
  # 5.0.1
2
5
  * Fix license annotation
3
6
 
@@ -25,4 +28,4 @@
25
28
  * Apply font size and weight to control title
26
29
 
27
30
  # 1.0.0
28
- * First release
31
+ * First release
package/package.json CHANGED
@@ -1,14 +1,20 @@
1
1
  {
2
2
  "name": "@flourish/ui-styles",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "private": false,
5
5
  "description": "Flourish module for styling UI elements",
6
6
  "main": "ui-styles.js",
7
7
  "module": "src/index.js",
8
+ "scripts": {
9
+ "lint": "eslint src",
10
+ "build": "rollup -c",
11
+ "prepare": "npm run build && npm run minify",
12
+ "minify": "uglifyjs -m -o ui-styles.min.js ui-styles.js"
13
+ },
8
14
  "author": "Kiln Enterprises Ltd",
9
15
  "license": "LicenseRef-LICENSE",
10
16
  "dependencies": {
11
- "@flourish/pocket-knife": "^1.0.0",
17
+ "@flourish/pocket-knife": "workspace:^",
12
18
  "d3-selection": "^1.4.0"
13
19
  },
14
20
  "devDependencies": {
@@ -21,10 +27,5 @@
21
27
  "repository": {
22
28
  "type": "git",
23
29
  "url": "git://github.com/kiln/flourish-ui-styles.git"
24
- },
25
- "scripts": {
26
- "lint": "eslint src",
27
- "build": "rollup -c",
28
- "minify": "uglifyjs -m -o ui-styles.min.js ui-styles.js"
29
30
  }
30
- }
31
+ }
@@ -56,6 +56,7 @@ SliderStyle.prototype.update = function() {
56
56
 
57
57
  this._styles.select(this._selector + " .slider-label")
58
58
  .style("padding-inline-start", "0.3rem")
59
+ .style("box-sizing", "content-box")
59
60
  .style("color", text_color);
60
61
 
61
62
  this._styles.select(this._selector + " input[type=range]")
package/ui-styles.js CHANGED
@@ -866,6 +866,7 @@
866
866
 
867
867
  this._styles.select(this._selector + " .slider-label")
868
868
  .style("padding-inline-start", "0.3rem")
869
+ .style("box-sizing", "content-box")
869
870
  .style("color", text_color);
870
871
 
871
872
  this._styles.select(this._selector + " input[type=range]")