I tried to create an encrypted partition in cockpit storage in anaconda WebUI, but my first attempt failed, because the "Create" button did nothing after clicking on it. My expectation was there would be a popup window asking me for a passphrase. Only later I noticed I have to scroll the dialog window, where I have to provide the passphrase. There is a scrollbar on the right side of the dialog window, but it's pretty thin and hides very quickly - making it hard to spot. See the attached screencast. Reproducible: Always
Created attachment 2017197 [details] Screencast
@mvollmer: We should probably use element.scrollIntoView() with the (alignToTop boolean set) on the Encryption entry, after a change in the dropdown. This would show that the inside is scrollable as well as show the encryption information when relevant. See: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView On larger or screens or changing back to none, the scroll will have no effect, as it's the last part of the modal.
(In reply to Garrett LeSage from comment #2) > @mvollmer: We should probably use element.scrollIntoView() with the > (alignToTop boolean set) on the Encryption entry, after a change in the > dropdown. Yes, good idea. Also, when people click on Apply and there are validation errors for certain fields, we should scroll those fields into view.
> when ... there are validation errors ..., we should scroll those fields into view. Sure, that would be good as well, but only scroll to the topmost element that contains an error. (It would get unpredictable if there are multiples and you told it to scroll to all.) Then if that is fixed, assuming there are still multiple errors and a small viewport, it'd scroll to the next that wasn't addressed.
https://github.com/cockpit-project/cockpit/pull/20060
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42.