@sb1/ffe-buttons 21.3.10 → 22.0.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/css/buttons.css CHANGED
@@ -69,7 +69,7 @@
69
69
  display: -webkit-box;
70
70
  display: -ms-flexbox;
71
71
  display: flex;
72
- font-family: var(--ffe-g-font);
72
+ font-family: var(--ffe-g-font-strong);
73
73
  -webkit-box-pack: center;
74
74
  -ms-flex-pack: center;
75
75
  justify-content: center;
@@ -180,7 +180,7 @@
180
180
  background-color: var(--ffe-color-component-button-action-fill-pressed);
181
181
  }
182
182
  @media (hover: hover) and (pointer: fine) {
183
- .ffe-button--action:hover:not(:active):not(.ffe-button--pressed) {
183
+ .ffe-button--action:hover:not(:active, .ffe-button--pressed) {
184
184
  background-color: var(--ffe-color-component-button-action-fill-hover);
185
185
  }
186
186
  }
@@ -300,7 +300,8 @@
300
300
  box-shadow: none;
301
301
  color: var(--text-color);
302
302
  display: inline-block;
303
- padding: var(--ffe-spacing-2xs) var(--ffe-spacing-sm) var(--ffe-spacing-2xs) var(--ffe-spacing-2xs);
303
+ padding: 0;
304
+ margin: var(--ffe-spacing-2xs);
304
305
  text-align: left;
305
306
  -webkit-transition: all var(--ffe-transition-duration) var(--ffe-ease);
306
307
  -o-transition: all var(--ffe-transition-duration) var(--ffe-ease);
@@ -314,8 +315,8 @@
314
315
  border: 2px solid var(--icon-border-color);
315
316
  background-color: var(--icon-background-color);
316
317
  border-radius: 50%;
317
- height: 45px;
318
- width: 45px;
318
+ height: 48px;
319
+ width: 48px;
319
320
  display: -webkit-box;
320
321
  display: -ms-flexbox;
321
322
  display: flex;
@@ -16,7 +16,7 @@
16
16
  color: var(--ffe-color-component-button-primary-foreground-default);
17
17
  cursor: pointer;
18
18
  display: flex;
19
- font-family: var(--ffe-g-font);
19
+ font-family: var(--ffe-g-font-strong);
20
20
  justify-content: center;
21
21
  line-height: 1.5; // 16 * 1.5 = 24(height of ffe-icons size md)
22
22
  overflow: hidden;
@@ -132,7 +132,7 @@
132
132
  }
133
133
 
134
134
  @media (hover: hover) and (pointer: fine) {
135
- &:hover:not(:active):not(.ffe-button--pressed) {
135
+ &:hover:not(:active, .ffe-button--pressed) {
136
136
  background-color: var(
137
137
  --ffe-color-component-button-action-fill-hover
138
138
  );
@@ -310,14 +310,15 @@
310
310
 
311
311
  &--task {
312
312
  --text-color: var(--ffe-color-foreground-emphasis);
313
+
313
314
  background: transparent;
314
315
  border-radius: 1.75rem;
315
316
  border: none;
316
317
  box-shadow: none;
317
318
  color: var(--text-color);
318
319
  display: inline-block;
319
- padding: var(--ffe-spacing-2xs) var(--ffe-spacing-sm)
320
- var(--ffe-spacing-2xs) var(--ffe-spacing-2xs);
320
+ padding: 0;
321
+ margin: var(--ffe-spacing-2xs);
321
322
  text-align: left;
322
323
  transition: all var(--ffe-transition-duration) var(--ffe-ease);
323
324
  width: auto;
@@ -330,8 +331,8 @@
330
331
  border: 2px solid var(--icon-border-color);
331
332
  background-color: var(--icon-background-color);
332
333
  border-radius: 50%;
333
- height: 45px;
334
- width: 45px;
334
+ height: 48px;
335
+ width: 48px;
335
336
  display: flex;
336
337
  align-items: center;
337
338
  justify-content: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-buttons",
3
- "version": "21.3.10",
3
+ "version": "22.0.0",
4
4
  "license": "MIT",
5
5
  "author": "SpareBank1",
6
6
  "files": [
@@ -12,18 +12,20 @@
12
12
  "url": "ssh://git@github.com:SpareBank1/designsystem.git"
13
13
  },
14
14
  "scripts": {
15
- "lint": "ffe-buildtool stylelint less/*.less",
15
+ "lint": "echo `Linting handled at root level with oxlint`",
16
+ "lint:style": "ffe-buildtool stylelint less/*.less",
17
+ "lint:style:fix": "ffe-buildtool stylelint --fix less/*.less",
16
18
  "test": "npm run lint",
17
19
  "build": "lessc less/buttons.less css/buttons.css --autoprefix"
18
20
  },
19
21
  "dependencies": {
20
- "@sb1/ffe-core": "^32.0.4"
22
+ "@sb1/ffe-core": "^33.0.0"
21
23
  },
22
24
  "devDependencies": {
23
- "@sb1/ffe-buildtool": "^0.10.0"
25
+ "@sb1/ffe-buildtool": "^0.10.1"
24
26
  },
25
27
  "publishConfig": {
26
28
  "access": "public"
27
29
  },
28
- "gitHead": "52a39d013e53e8645be7bc73837d7f79004eb3a2"
30
+ "gitHead": "0f26027df58d561ce8d5310c91033c5e62e50f51"
29
31
  }