@knime/kds-components 8.2.0 → 8.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @knime/kds-components
2
2
 
3
+ ## 8.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9cf30f3: `KdsTextarea`: grow with its content via the native CSS `field-sizing` instead of resizing through JavaScript, so editing long text no longer jumps the surrounding scroll container to the top.
8
+ - Updated dependencies [c8cdfef]
9
+ - @knime/kds-styles@8.2.1
10
+
3
11
  ## 8.2.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.css CHANGED
@@ -3211,13 +3211,19 @@ to {
3211
3211
  }
3212
3212
 
3213
3213
  textarea {
3214
- &[data-v-c4369feb] {
3214
+ &[data-v-ec173ba8] {
3215
3215
  box-sizing: border-box;
3216
3216
  width: 100%;
3217
+
3218
+ /* Auto-grow while keeping a `min-height` (`field-sizing` makes the browser ignore the `rows` attribute) */
3219
+ field-sizing: content;
3220
+ min-height: calc(
3221
+ var(--bd80b120) * 1lh + 2 * var(--kds-spacing-container-0-5x)
3222
+ );
3217
3223
  padding: calc(
3218
3224
  var(--kds-spacing-container-0-5x) - var(--kds-core-border-width-xs)
3219
3225
  );
3220
- overflow: hidden;
3226
+ overflow-y: auto;
3221
3227
  font: var(--kds-font-base-body-small);
3222
3228
  color: var(--kds-color-text-and-icon-neutral);
3223
3229
  resize: none;
@@ -3228,32 +3234,32 @@ textarea {
3228
3234
  border-radius: var(--kds-border-radius-container-0-37x);
3229
3235
  -ms-overflow-style: none;
3230
3236
  }
3231
- &.invalid[data-v-c4369feb] {
3237
+ &.invalid[data-v-ec173ba8] {
3232
3238
  border: var(--kds-border-action-error);
3233
3239
  }
3234
- &[data-v-c4369feb]::placeholder {
3240
+ &[data-v-ec173ba8]::placeholder {
3235
3241
  color: var(--kds-color-text-and-icon-subtle);
3236
3242
  }
3237
3243
  &:disabled {
3238
- &[data-v-c4369feb] {
3244
+ &[data-v-ec173ba8] {
3239
3245
  color: var(--kds-color-text-and-icon-disabled);
3240
3246
  cursor: default;
3241
3247
  border: var(--kds-border-action-disabled);
3242
3248
  border-color: var(--kds-color-border-disabled);
3243
3249
  }
3244
- &[data-v-c4369feb]::placeholder {
3250
+ &[data-v-ec173ba8]::placeholder {
3245
3251
  color: var(--kds-color-text-and-icon-disabled);
3246
3252
  }
3247
3253
  }
3248
- &[data-v-c4369feb]:hover:not(:disabled, :focus) {
3254
+ &[data-v-ec173ba8]:hover:not(:disabled, :focus) {
3249
3255
  background: var(--kds-color-background-input-hover);
3250
3256
  }
3251
- &[data-v-c4369feb]:focus:not(:disabled) {
3257
+ &[data-v-ec173ba8]:focus:not(:disabled) {
3252
3258
  outline: var(--kds-border-action-focused);
3253
3259
  outline-offset: var(--kds-spacing-offset-focus);
3254
3260
  }
3255
3261
  }
3256
- textarea[data-v-c4369feb]::-webkit-scrollbar {
3262
+ textarea[data-v-ec173ba8]::-webkit-scrollbar {
3257
3263
  display: none;
3258
3264
  }
3259
3265