KModal does not shrink when the content has a smaller height
Product
Studio
Expected behavior
The height of the KModal should dynamically adjust to the height of the content it renders.
Actual behavior
If for some reason the content of the KModal is expanded after its first render, the KModal is expanded accordingly, but if it is then shrinked, the KModal remains with the height of the expanded content, and this can lead to cases like this:
If initially we have a componente with a description like this:
But then we want to delete it, we get this view:
Cases like this occur in several places where the height of some element varies while the modal is displayed.
Steps to reproduce the issue
- Go to Studio and checkout the branch
studio-usability-enhancements - Edit the content nodes of a channel
- Edit the title and description of a node
Environment
- OS: Ubuntu
- Browser version: Chrome Version 122.0.6261.94 (Official Build) (64-bit)
hey @AlexVelezLl great notice, but I think you listed this issue in the wrong Repo, correct me if am i wrong tho, I am really new to open source so..
Hi @shrudge! No, the issue is in the correct repository. KDS is responsible for providing the components that will be used in other Kolibri products, you can learn more about KDS in the repo readme.
The issue is about the KModal component, here in KDS, probably it has something to do with the updateContentSectionStyle method.
@AlexVelezLl Can I get this issue assigned?
Hi @galovdev! Sure! Let me know if you have any question :)
Closed by https://github.com/learningequality/kolibri-design-system/pull/590