Scroll to recently added metadata row
Fixes #5929
Adds Javascript to scroll to the recently added metadata row and highlights it by changing its background color.
Todo
- [ ] Clean up code
- [ ] Apply the same logic to other metadata tables (e.g. when creating a new process)
- [ ] Selenium Test
Demo
https://github.com/user-attachments/assets/f07bbfd1-fa0c-4d75-9085-cb8bee49f00a
@thomaslow great work! Thanks for directly putting the focus on the new element and also giving it its own style so it is even easier to directly identify!
@thomaslow please rebase against current master. There seems to be a test failing - MetadataST.linkPageToNextDivision - after #6255 was merged.
Perhaps we could adjust the color of the focused row in the future to something that is already used in the Kitodo color scheme.
Of course, my color choice is debatable. There is no usable existing color in the color palette of pattern-library.css. Maybe a slightly darker blue would be better?
The regular background uses the CSS variable --trans-blue. I added a variable --trans-blue-highlight.
Maybe a slightly darker blue would be better?
Yes, I think this works a lot better. Thanks for the update.