@automattic/jetpack-components 0.64.1 → 0.64.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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ### This is a list detailing changes for the Jetpack RNA Components package releases.
4
4
 
5
+ ## [0.64.2] - 2024-12-10
6
+ ### Fixed
7
+ - Fix ToggleControl's help text indent to align with label text. [#40510]
8
+
5
9
  ## [0.64.1] - 2024-12-09
6
10
  ### Removed
7
11
  - Remove bulk action support from the ThreatsDataViews component. [#40483]
@@ -1243,6 +1247,7 @@
1243
1247
  ### Changed
1244
1248
  - Update node version requirement to 14.16.1
1245
1249
 
1250
+ [0.64.2]: https://github.com/Automattic/jetpack-components/compare/0.64.1...0.64.2
1246
1251
  [0.64.1]: https://github.com/Automattic/jetpack-components/compare/0.64.0...0.64.1
1247
1252
  [0.64.0]: https://github.com/Automattic/jetpack-components/compare/0.63.0...0.64.0
1248
1253
  [0.63.0]: https://github.com/Automattic/jetpack-components/compare/0.62.0...0.63.0
@@ -4,6 +4,7 @@
4
4
  /// @link https://github.com/WordPress/gutenberg/tree/trunk/packages/components/src/form-toggle
5
5
  .toggle {
6
6
  --base-width: 8px;
7
+ --track-width: calc( var(--base-width) * 6 );
7
8
 
8
9
  &.is-small {
9
10
  --base-width: 6px;
@@ -24,7 +25,7 @@
24
25
  }
25
26
 
26
27
  .components-form-toggle__track {
27
- width: calc( var(--base-width) * 6 );
28
+ width: var( --track-width );
28
29
  height: calc( var(--base-width) * 3 );
29
30
  border-radius: 12px;
30
31
  border-width: 2px;
@@ -41,6 +42,10 @@
41
42
  transform: translateX( calc( var(--base-width) * 3 ) );
42
43
  }
43
44
  }
45
+
46
+ .components-toggle-control__help {
47
+ margin-inline-start: calc( var( --track-width ) + var( --spacing-base ) );
48
+ }
44
49
  }
45
50
  }
46
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-components",
3
- "version": "0.64.1",
3
+ "version": "0.64.2",
4
4
  "description": "Jetpack Components Package",
5
5
  "author": "Automattic",
6
6
  "license": "GPL-2.0-or-later",