@sb1/ffe-cards 19.1.1 → 19.1.3

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,12 +1,10 @@
1
1
  .common-card-styling() {
2
- &:extend(.ffe-body-text);
3
-
4
2
  background: var(--ffe-v-cards-common-card-background-color);
5
3
  box-shadow: 0 1px 4px 0 var(--ffe-v-cards-common-card-box-shadow-color);
6
4
  margin: 0 0 var(--ffe-spacing-2xs);
7
5
  border: 2px solid transparent;
8
6
  border-radius: var(--ffe-v-cards-common-card-border-radius);
9
- transition: border-color 0.2s;
7
+ transition: all var(--ffe-transition-duration) var(--ffe-ease);
10
8
  outline: none;
11
9
  width: 100%;
12
10
  text-decoration: none;
@@ -33,21 +31,19 @@
33
31
  outline: inherit;
34
32
  }
35
33
 
36
- &:has(.ffe-card__action) {
37
- cursor: pointer;
34
+ @media (hover: hover) and (pointer: fine) {
35
+ &--clickable:hover {
36
+ cursor: pointer;
37
+ border-color: var(--ffe-g-primary-color);
38
38
 
39
- @media (hover: hover) and (pointer: fine) {
40
- &:hover {
41
- border-color: var(--ffe-g-primary-color);
42
- &
43
- :where(
44
- .ffe-card-body__card-name,
45
- .ffe-card-body__title,
46
- .ffe-card-body__subtext,
47
- .ffe-card-body__text
48
- ):has(.ffe-card__action) {
49
- text-decoration: underline;
50
- }
39
+ &
40
+ :where(
41
+ .ffe-card-body__card-name,
42
+ .ffe-card-body__title,
43
+ .ffe-card-body__subtext,
44
+ .ffe-card-body__text
45
+ ):has(.ffe-card__action) {
46
+ text-decoration: underline;
51
47
  }
52
48
  }
53
49
  }
@@ -64,8 +60,16 @@
64
60
  box-shadow: 0 0 0 2px var(--ffe-g-primary-color);
65
61
  }
66
62
 
63
+ @supports not
64
+ selector(&:has(.ffe-card__action:active, .ffe-card__action:focus)) {
65
+ &--clickable:focus-within {
66
+ border-color: var(--ffe-g-primary-color);
67
+ }
68
+ }
69
+
67
70
  &:has(.ffe-card__action:active, .ffe-card__action:focus) {
68
71
  border-color: var(--ffe-g-primary-color);
72
+
69
73
  &
70
74
  :where(
71
75
  .ffe-card-body__card-name,
@@ -18,12 +18,19 @@
18
18
  box-shadow: none;
19
19
  }
20
20
 
21
- &:has(.ffe-card__action) {
22
- @media (hover: hover) and (pointer: fine) {
23
- &:hover {
24
- border-style: solid;
25
- box-shadow: none;
26
- }
21
+ @supports not
22
+ selector(&:has(.ffe-card__action:active, .ffe-card__action:focus)) {
23
+ &--clickable:focus-within {
24
+ border-style: solid;
25
+ box-shadow: none;
26
+ }
27
+ }
28
+
29
+ @media (hover: hover) and (pointer: fine) {
30
+ &--clickable:hover {
31
+ cursor: pointer;
32
+ border-style: solid;
33
+ box-shadow: none;
27
34
  }
28
35
  }
29
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-cards",
3
- "version": "19.1.1",
3
+ "version": "19.1.3",
4
4
  "description": "Kort for bruk i oversikter",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -16,13 +16,13 @@
16
16
  "test": "npm run lint"
17
17
  },
18
18
  "dependencies": {
19
- "@sb1/ffe-core": "^27.5.3"
19
+ "@sb1/ffe-core": "^27.5.4"
20
20
  },
21
21
  "devDependencies": {
22
- "@sb1/ffe-buildtool": "^0.6.4"
22
+ "@sb1/ffe-buildtool": "^0.7.0"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "gitHead": "3a4d6b2e14b8aa93318abdb176b41e448af5a31e"
27
+ "gitHead": "83b5c8952328ec39a99040567677ab01c3180f42"
28
28
  }