-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop nested .from-top
classes causing two modal top bars
#61
Conversation
Thanks for your contribution 👍 @DeanmvSG It would be nice if you can post the name of the package so I can try to reproduce this behavior. It looks like the specific package should fix the way it creates the modal. The Atom API provides powerful methods to create a package that fits the current theme without setting any custom CSS which may break the UI theme. I'd like to help you fix this problem, maybe I can reproduce it and create a bugfix PR in the repository of the specific package. |
I didn't know if it could be happening with other packages as well so not sure if here was the best place to do it? I've opened an issue (linked above) over at the other package and then tested removing the CSS classes locally and it all still worked ok so I'd say it was best to fix in other package if you'd prefer! 👍 |
I've investigated the problem in debug mode and it seems like there is indeed a strange bug in the theme. It seems like the origin I am very glad about your help 💚 since your PR would avoid most of the visual issues, but there will still be a small visible overlap between both container and the origin Screenshots using the PR branch: I'll refactor the whole code for overlays- and modals to fix this strange issue since it won't occur with other themes. This will be implemented in the UI scale refacroring #58. ‣ To be resolved in #58 |
A package I am using creates a modal and then applies the
![screen shot 2017-03-20 at 14 21 03](https://cloud.githubusercontent.com/assets/15265711/24104023/f9f51622-0d78-11e7-9224-b202412df3a6.png)
from-top
class to the outer class of the modal. This duplicates that class as and so it causes this to happen:👎
This change means that if and other packages to this it resets the inner
![screen shot 2017-03-20 at 14 22 57](https://cloud.githubusercontent.com/assets/15265711/24104054/0e1e5302-0d79-11e7-98c8-e314c8e4778b.png)
from-top
to0px
which doesn't cause the visual issue and looks like this:👍
I'm not sure if other packages are doing it but though it seemed easier to fix it here incase they are rather than in each package!
Thanks!