When text is selected from key-value list component, with "shift+arrow" text selection will be expanded / shrinked.
It expands selection, but it also moves selected text in key-value pair.
Example code: https://stackblitz.com/edit/github-bd8pek
Bug exists in Chrome. My version is 80.0.3987.122 (Official Build) (64-bit). I've checked it in Firefox and there it works fine. I'm using Windows 10.
I can confirm that this is reproducible within the stackblitz application.
This will be a fun one to debug.
It seems that the wrapper you are setting (especially the display flex) if messing with the styles of the key-value list overflow.
In general, the key value list would be able to display two or more columns. You can pass number of columns you want into the key-value-list component itself (https://barista.dynatrace.com/components/key-value-list/#multiple-columns).
We will need to see why chrome and safari are behaving weirdly in a flex container, though.
It seems that the styling of the key-value-list-item-key::after
, with defining a long border to fill the values between the key and the value, is messing it up within a flex container. Somehow the overflow does not work here any more.
Thanks for taking care of it so quickly!
Most helpful comment
Thanks for taking care of it so quickly!