lux-design-system 5.3.0 → 5.3.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.
@@ -1,13 +1,28 @@
1
1
  /* VUE DESIGN SYSTEM FOCUS AND HOVER HELPERS
2
2
  --------------------------------------------- */
3
- @mixin princeton-focus($theme: light) {
3
+ @function decoration-color-by-theme($theme: light) {
4
4
  @if $theme == light {
5
- outline: var(--color-princeton-orange-on-white) solid 0.25rem;
5
+ @return var(--color-princeton-orange-on-white);
6
6
  } @else if $theme == dark {
7
- outline: var(--color-princeton-orange-on-black) solid 0.25rem;
7
+ @return var(--color-princeton-orange-on-black);
8
8
  } @else if $theme == shade {
9
- outline: var(--color-princeton-orange-on-black) solid 0.25rem;
9
+ @return var(--color-princeton-orange-on-black);
10
+ }
11
+ }
12
+ @mixin princeton-focus($theme: light) {
13
+ &:hover {
14
+ text-decoration: underline;
15
+ text-underline-offset: 3px;
16
+ text-decoration-thickness: 0.15rem;
17
+ text-decoration-color: decoration-color-by-theme($theme)
18
+ }
19
+ &:focus-visible {
20
+ outline: decoration-color-by-theme($theme) solid 0.25rem;
21
+ outline-offset: none;
22
+ box-shadow: none;
23
+ }
24
+ &:focus-within {
25
+ text-decoration: underline;
26
+ text-decoration-color: decoration-color-by-theme($theme)
10
27
  }
11
- outline-offset: none;
12
- box-shadow: none;
13
28
  }
@@ -76,7 +76,7 @@ $space-x-small: 8px;
76
76
  $space-xx-small: 4px;
77
77
  $line-height-base: 1.6;
78
78
  $line-height-small: 1.3;
79
- $line-height-heading: 1;
79
+ $line-height-heading: 1.5;
80
80
 
81
81
  /* GLOBAL MIXINS
82
82
  --------------------------------------------- */
@@ -95,6 +95,6 @@
95
95
  --space-xx-small: 4px;
96
96
  --line-height-base: 1.6;
97
97
  --line-height-small: 1.175;
98
- --line-height-heading: 1;
98
+ --line-height-heading: 1.5;
99
99
  --positive-text: #7cb518;
100
100
  }
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "require": "./dist/styles/style.scss"
21
21
  }
22
22
  },
23
- "version": "5.3.0",
23
+ "version": "5.3.2",
24
24
  "scripts": {
25
25
  "serve": "vue-cli-service serve",
26
26
  "build": "vite build",