@navikt/aksel-stylelint 5.10.4 → 5.11.1

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/dist/index.css CHANGED
@@ -1,7 +1,7 @@
1
1
  @charset "UTF-8";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Mon, 20 Nov 2023 08:12:57 GMT
4
+ * Generated on Thu, 23 Nov 2023 13:18:11 GMT
5
5
  */
6
6
  :root, :host {
7
7
  --a-spacing-1-alt: 0.375rem;
@@ -3091,7 +3091,7 @@ body,
3091
3091
  }
3092
3092
  .navds-switch__input:hover ~ .navds-switch__label-wrapper,
3093
3093
  .navds-switch__label-wrapper:hover {
3094
- color: var(--ac-switch-action, var(--a-surface-action));
3094
+ color: var(--ac-switch-action, var(--a-surface-action-selected));
3095
3095
  }
3096
3096
  .navds-switch__input:disabled:hover ~ .navds-switch__label-wrapper {
3097
3097
  color: inherit;
@@ -3116,19 +3116,19 @@ body,
3116
3116
  left: auto;
3117
3117
  }
3118
3118
  .navds-switch__input:checked ~ .navds-switch__track {
3119
- background-color: var(--ac-switch-checked-bg, var(--a-surface-success));
3119
+ background-color: var(--ac-switch-checked-bg, var(--a-surface-action-selected));
3120
3120
  }
3121
3121
  .navds-switch__input:hover ~ .navds-switch__track {
3122
3122
  background-color: var(--ac-switch-hover-bg, var(--a-surface-neutral-hover));
3123
3123
  }
3124
3124
  .navds-switch__input:hover:checked ~ .navds-switch__track {
3125
- background-color: var(--ac-switch-checked-hover-bg, var(--a-surface-success-hover));
3125
+ background-color: var(--ac-switch-checked-hover-bg, var(--a-surface-action-selected-hover));
3126
3126
  }
3127
3127
  .navds-switch__input:disabled ~ .navds-switch__track {
3128
3128
  background-color: var(--ac-switch-bg, var(--a-surface-neutral));
3129
3129
  }
3130
3130
  .navds-switch__input:checked:disabled ~ .navds-switch__track {
3131
- background-color: var(--ac-switch-checked-bg, var(--a-border-success));
3131
+ background-color: var(--ac-switch-checked-bg, var(--a-border-action-selected));
3132
3132
  }
3133
3133
  .navds-switch__input:focus-visible ~ .navds-switch__track {
3134
3134
  box-shadow: 0 0 0 1px var(--a-surface-default), var(--a-shadow-focus);
@@ -3156,7 +3156,7 @@ body,
3156
3156
  }
3157
3157
  .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
3158
3158
  transform: translateX(1.25rem);
3159
- color: var(--ac-switch-thumb-icon-checked, var(--a-icon-success));
3159
+ color: var(--ac-switch-thumb-icon-checked, var(--a-icon-action-selected));
3160
3160
  }
3161
3161
  @media (hover: hover) and (pointer: fine) {
3162
3162
  .navds-switch__input:hover ~ .navds-switch__track > .navds-switch__thumb {
@@ -3173,10 +3173,6 @@ body,
3173
3173
  .navds-switch__input:checked:disabled:hover ~ .navds-switch__track > .navds-switch__thumb {
3174
3174
  transform: translateX(1.25rem);
3175
3175
  }
3176
- /* Loader */
3177
- .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb .navds-loader__foreground {
3178
- stroke: var(--ac-switch-thumb-icon-checked, var(--a-icon-success));
3179
- }
3180
3176
  /* Disabled */
3181
3177
  .navds-switch__input:disabled {
3182
3178
  appearance: none;
@@ -3293,7 +3289,7 @@ body,
3293
3289
  }
3294
3290
  .navds-textarea__wrapper {
3295
3291
  position: relative;
3296
- width: 100%;
3292
+ min-width: 100%;
3297
3293
  }
3298
3294
  .navds-textarea__input {
3299
3295
  appearance: none;
@@ -3332,8 +3328,36 @@ body,
3332
3328
  .navds-textarea__counter--error {
3333
3329
  color: var(--ac-textarea-counter-error-text, var(--__ac-textarea-counter-error-text, var(--a-text-danger)));
3334
3330
  }
3335
- .navds-textarea--resize .navds-textarea__input {
3331
+ .navds-textarea__sr-counter {
3332
+ display: none;
3333
+ }
3334
+ .navds-textarea__wrapper:focus-within .navds-textarea__sr-counter {
3335
+ display: initial;
3336
+ }
3337
+ .navds-textarea--resize-both .navds-textarea__input {
3336
3338
  resize: both;
3339
+ border-end-end-radius: 0;
3340
+ }
3341
+ .navds-textarea--resize-horizontal .navds-textarea__input {
3342
+ resize: horizontal;
3343
+ border-end-end-radius: 0;
3344
+ }
3345
+ .navds-textarea--resize-vertical .navds-textarea__input {
3346
+ resize: vertical;
3347
+ border-end-end-radius: 0;
3348
+ }
3349
+ .navds-textarea--autoscrollbar,
3350
+ .navds-textarea--autoscrollbar .navds-textarea__wrapper {
3351
+ display: flex;
3352
+ flex-direction: column;
3353
+ overflow: hidden;
3354
+
3355
+ /* Makes the box-shadow visible even though overflow is hidden: */
3356
+ padding: 3px;
3357
+ margin: -3px;
3358
+ }
3359
+ .navds-textarea--autoscrollbar .navds-textarea__input {
3360
+ scrollbar-gutter: stable; /* Needed to prevent scrollbar from appearing too early */
3337
3361
  }
3338
3362
  /**
3339
3363
  Error handling
package/dist/tokens.json CHANGED
@@ -401,14 +401,14 @@
401
401
  "--ac-select-error-border": "--a-surface-danger"
402
402
  },
403
403
  "switch": {
404
- "--ac-switch-action": "--a-surface-action",
404
+ "--ac-switch-action": "--a-surface-action-selected",
405
405
  "--ac-switch-bg": "--a-surface-neutral",
406
- "--ac-switch-checked-bg": "--a-surface-success",
406
+ "--ac-switch-checked-bg": "--a-surface-action-selected",
407
407
  "--ac-switch-hover-bg": "--a-surface-neutral-hover",
408
- "--ac-switch-checked-hover-bg": "--a-surface-success-hover",
408
+ "--ac-switch-checked-hover-bg": "--a-surface-action-selected-hover",
409
409
  "--ac-switch-thumb-bg": "--a-surface-default",
410
410
  "--ac-switch-thumb-icon": "--a-icon-subtle",
411
- "--ac-switch-thumb-icon-checked": "--a-icon-success"
411
+ "--ac-switch-thumb-icon-checked": "--a-icon-action-selected"
412
412
  },
413
413
  "textfield": {
414
414
  "--ac-textfield-bg": "--a-surface-default",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/aksel-stylelint",
3
- "version": "5.10.4",
3
+ "version": "5.11.1",
4
4
  "author": "Aksel | NAV",
5
5
  "homepage": "https://aksel.nav.no/grunnleggende/kode/stylelint",
6
6
  "repository": {
@@ -35,8 +35,8 @@
35
35
  "dev": "yarn watch:lint"
36
36
  },
37
37
  "devDependencies": {
38
- "@navikt/ds-css": "^5.10.4",
39
- "@navikt/ds-tokens": "^5.10.4",
38
+ "@navikt/ds-css": "^5.11.1",
39
+ "@navikt/ds-tokens": "^5.11.1",
40
40
  "@types/jest": "^29.0.0",
41
41
  "concurrently": "7.2.1",
42
42
  "copyfiles": "2.4.1",