@simplybusiness/theme-core 7.13.13 → 7.13.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
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.13.15
4
+
5
+ ### Patch Changes
6
+
7
+ - c46c9f9: Make radio button focus shadow themeable and consolidate radio styling
8
+ - Updated dependencies [c46c9f9]
9
+ - Updated dependencies [83da228]
10
+ - @simplybusiness/mobius@6.5.2
11
+
12
+ ## 7.13.14
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [f5af9d5]
17
+ - @simplybusiness/mobius@6.5.1
18
+
3
19
  ## 7.13.13
4
20
 
5
21
  ### Patch Changes
package/dist/index.css CHANGED
@@ -53,7 +53,7 @@
53
53
 
54
54
  .mobius-accordion__link:focus-visible{
55
55
  outline:none;
56
- box-shadow:var(--box-shadow-default);
56
+ box-shadow:var(--accordion-box-shadow, var(--box-shadow-default));
57
57
  }
58
58
 
59
59
  h1.mobius-accordion__link-text,
@@ -301,6 +301,10 @@ h6.mobius-accordion__link-text,
301
301
  background:var(--color-background-light);
302
302
  }
303
303
 
304
+ .mobius-button:where(.--variant-basic):where(:focus-visible){
305
+ box-shadow:var(--box-shadow-default);
306
+ }
307
+
304
308
  .mobius-button:where(.--variant-basic):where(.--is-disabled){
305
309
  --button-content-color:var(--color-text-light);
306
310
  background:var(--color-background-medium);
@@ -356,11 +360,12 @@ h6.mobius-accordion__link-text,
356
360
  }
357
361
 
358
362
  .mobius-button:where(.--variant-link){
359
- --button-content-color:var(--color-secondary);
363
+ --button-content-color:var(--button-link-color, var(--color-secondary));
360
364
  appearance:none;
361
365
  padding:var(--size-xxs);
362
366
  background:transparent;
363
367
  font-weight:normal;
368
+ border-radius:var(--button-link-border-radius, var(--button-border-radius));
364
369
  }
365
370
 
366
371
  .mobius-button:where(.--variant-link):where(:not(.--is-loading)){
@@ -369,12 +374,13 @@ h6.mobius-accordion__link-text,
369
374
  }
370
375
 
371
376
  .mobius-button:where(.--variant-link):hover,.mobius-button:where(.--variant-link):active{
372
- --button-content-color:var(--color-secondary-hover);
377
+ --button-content-color:var(--button-link-hover-color, var(--color-secondary-hover));
378
+ text-decoration:var(--button-link-hover-text-decoration, underline);
373
379
  cursor:pointer;
374
380
  }
375
381
 
376
382
  .mobius-button:where(.--variant-link):focus-visible{
377
- box-shadow:0 0 0 var(--size-focus-ring) var(--color-focus);
383
+ box-shadow:var(--button-link-box-shadow, var(--box-shadow-default));
378
384
  }
379
385
 
380
386
  .mobius-button.--is-disabled:where(.--variant-link){
@@ -392,11 +398,6 @@ h6.mobius-accordion__link-text,
392
398
  place-items:center;
393
399
  }
394
400
 
395
- a.mobius-button:focus-visible,
396
- .mobius-button:focus-visible{
397
- box-shadow:var(--box-shadow-default);
398
- }
399
-
400
401
  .mobius-checkbox__input{
401
402
  appearance:none;
402
403
  position:absolute;
@@ -1059,14 +1060,13 @@ a.mobius-button:focus-visible,
1059
1060
  }
1060
1061
 
1061
1062
  .mobius-link:hover,.mobius-link:active{
1062
- -webkit-text-decoration:underline;
1063
- text-decoration:underline;
1063
+ text-decoration:var(--link-hover-text-decoration, underline);
1064
1064
  cursor:pointer;
1065
1065
  color:var(--color-link-hover);
1066
1066
  }
1067
1067
 
1068
1068
  .mobius-link:focus-visible{
1069
- box-shadow:var(--box-shadow-default);
1069
+ box-shadow:var(--link-box-shadow, var(--box-shadow-default));
1070
1070
  padding:3px 0;
1071
1071
  }
1072
1072
 
@@ -1515,6 +1515,7 @@ a.mobius-button:focus-visible,
1515
1515
  }
1516
1516
 
1517
1517
  .mobius-radio__input:focus-visible{
1518
+ outline-color:var(--color-primary);
1518
1519
  outline-offset:0;
1519
1520
  }
1520
1521
 
@@ -1603,7 +1604,7 @@ a.mobius-button:focus-visible,
1603
1604
  }
1604
1605
 
1605
1606
  .mobius-radio__label:has(:focus-visible):not(.--is-disabled){
1606
- box-shadow:var(--box-shadow-default);
1607
+ box-shadow:var(--radio-box-shadow);
1607
1608
  }
1608
1609
 
1609
1610
  .mobius-radio__label:has(:focus-visible):not(.--is-disabled):not(.--is-invalid .mobius-radio__label:has(:focus-visible):not(.--is-disabled)){
@@ -3129,6 +3130,7 @@ svg:not(:host).svg-inline--mobius-icon{
3129
3130
  --radio-label-background-focus:var(--color-background-input-active);
3130
3131
  --radio-label-background-invalid:var(--color-error-background);
3131
3132
  --radio-label-padding:var(--input-field-padding-tight);
3133
+ --radio-box-shadow:var(--box-shadow-default);
3132
3134
  --radio-content-font-size:var(--font-size-regular);
3133
3135
  --radio-content-color:inherit;
3134
3136
  --radio-content-line-height:normal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplybusiness/theme-core",
3
- "version": "7.13.13",
3
+ "version": "7.13.15",
4
4
  "main": "dist/index.css",
5
5
  "simplyBusiness": {
6
6
  "publishToPublicNpm": true
@@ -26,9 +26,9 @@
26
26
  "./fonts": "./dist/fonts.css"
27
27
  },
28
28
  "dependencies": {
29
- "@simplybusiness/mobius": "^6.5.0"
29
+ "@simplybusiness/mobius": "^6.5.2"
30
30
  },
31
31
  "devDependencies": {
32
- "build-scripts": "^1.0.1"
32
+ "build-scripts": "^1.0.2"
33
33
  }
34
34
  }
package/src/index.css CHANGED
@@ -51,4 +51,3 @@
51
51
  box-sizing: border-box;
52
52
  }
53
53
  }
54
- @import "./components/MaskedField.css";
package/src/variables.css CHANGED
@@ -229,6 +229,7 @@
229
229
  --radio-label-background-focus: var(--color-background-input-active);
230
230
  --radio-label-background-invalid: var(--color-error-background);
231
231
  --radio-label-padding: var(--input-field-padding-tight);
232
+ --radio-box-shadow: var(--box-shadow-default);
232
233
  --radio-content-font-size: var(--font-size-regular);
233
234
  --radio-content-color: inherit;
234
235
  --radio-content-line-height: normal;
@@ -1 +0,0 @@
1
- .mobius-masked-field { }