@navikt/ds-css 5.10.3 → 5.11.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.
@@ -3047,7 +3047,7 @@
3047
3047
 
3048
3048
  .navds-textarea__wrapper {
3049
3049
  position: relative;
3050
- width: 100%;
3050
+ min-width: 100%;
3051
3051
  }
3052
3052
 
3053
3053
  .navds-textarea__input {
@@ -3095,8 +3095,42 @@
3095
3095
  color: var(--ac-textarea-counter-error-text, var(--__ac-textarea-counter-error-text, var(--a-text-danger)));
3096
3096
  }
3097
3097
 
3098
- .navds-textarea--resize .navds-textarea__input {
3098
+ .navds-textarea__sr-counter {
3099
+ display: none;
3100
+ }
3101
+
3102
+ .navds-textarea__wrapper:focus-within .navds-textarea__sr-counter {
3103
+ display: initial;
3104
+ }
3105
+
3106
+ .navds-textarea--resize-both .navds-textarea__input {
3099
3107
  resize: both;
3108
+ border-end-end-radius: 0;
3109
+ }
3110
+
3111
+ .navds-textarea--resize-horizontal .navds-textarea__input {
3112
+ resize: horizontal;
3113
+ border-end-end-radius: 0;
3114
+ }
3115
+
3116
+ .navds-textarea--resize-vertical .navds-textarea__input {
3117
+ resize: vertical;
3118
+ border-end-end-radius: 0;
3119
+ }
3120
+
3121
+ .navds-textarea--autoscrollbar,
3122
+ .navds-textarea--autoscrollbar .navds-textarea__wrapper {
3123
+ display: flex;
3124
+ flex-direction: column;
3125
+ overflow: hidden;
3126
+
3127
+ /* Makes the box-shadow visible even though overflow is hidden: */
3128
+ padding: 3px;
3129
+ margin: -3px;
3130
+ }
3131
+
3132
+ .navds-textarea--autoscrollbar .navds-textarea__input {
3133
+ scrollbar-gutter: stable; /* Needed to prevent scrollbar from appearing too early */
3100
3134
  }
3101
3135
 
3102
3136
  /**