@lumx/core 3.12.1-alpha.7 → 3.13.1-alpha.0

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/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
41
41
  },
42
42
  "sideEffects": false,
43
- "version": "3.12.1-alpha.7",
43
+ "version": "3.13.1-alpha.0",
44
44
  "devDependencies": {
45
45
  "@babel/core": "^7.26.10",
46
46
  "@babel/plugin-proposal-class-properties": "^7.18.6",
@@ -5,18 +5,17 @@
5
5
  .#{$lumx-base-prefix}-link {
6
6
  @include lumx-link;
7
7
 
8
- &__left-icon {
9
- margin-right: $lumx-spacing-unit-tiny;
10
- }
11
-
12
- &__right-icon {
13
- margin-left: $lumx-spacing-unit-tiny;
14
- }
15
-
16
8
  &:disabled,
17
9
  &[aria-disabled="true"] {
18
10
  @include lumx-state-disabled-input;
19
11
  }
12
+
13
+ // Fix icon alignment
14
+ & .#{$lumx-base-prefix}-icon {
15
+ &, & svg {
16
+ display: inline;
17
+ }
18
+ }
20
19
  }
21
20
 
22
21
  /* Link colors
@@ -1,6 +1,5 @@
1
1
  @mixin lumx-link-base() {
2
- display: inline-flex;
3
- align-items: center;
2
+ display: inline;
4
3
  padding: 0;
5
4
  text-align: inherit;
6
5
  text-decoration: none;
@@ -9,10 +8,26 @@
9
8
  border: none;
10
9
  outline: none;
11
10
 
11
+ // Inherit parent typography (using :where to have selector specificity of 0)
12
+ :where(&:not(#{&}--has-typography)) {
13
+ font-family: inherit;
14
+ font-size: inherit;
15
+ font-style: inherit;
16
+ font-weight: inherit;
17
+ line-height: inherit;
18
+ }
19
+
12
20
  &:hover,
21
+ &[data-lumx-hover],
13
22
  &[data-focus-visible-added] {
14
23
  text-decoration: underline;
15
24
  }
25
+
26
+ &[data-focus-visible-added],
27
+ &:focus-visible {
28
+ outline: 1px auto currentColor;
29
+ outline-offset: 2px;
30
+ }
16
31
  }
17
32
 
18
33
  @mixin lumx-link-color($color, $variant) {
@@ -116,6 +116,7 @@
116
116
  // When using object-fit:cover + ratio 1/1, Chrome switches to pixelated downsizing algo
117
117
  // https://stackoverflow.com/a/77059936
118
118
  // The following prevent this so the image is correctly downsized using blurring effect
119
+ overflow-clip-margin: unset;
119
120
 
120
121
  @supports not (aspect-ratio: 1 / 1) {
121
122
  position: absolute;