-
Notifications
You must be signed in to change notification settings - Fork 4
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
[atable] modal z-sorting #240
Conversation
…izes. Amodal position changed from fixed to absolute
…ming they are all the same height
Coverage Report for ./atable
File Coverage
|
@crabinak I'll bet that's a transparent outline or border instead of one that would match the table (inherited?) bg-color |
@crabinak I changed the style logic to use offsetValues instead, which were resolving to the same value as the calculated ones. Can you check and let me know if they look fine to you as well?
I am seeing this as well, and I'm not sure what could be causing it. Claude seems to think that it has something to do with the table properties, but I'm not convinced. |
@Alchez Thanks. For some reason I thought offsetValues gave issues last time, but that was probably when using a fixed modal. I found a fix for the border issue. Since the row's border was set on the row and not the table cells, the modal ended up z-sorted above the row with borders but below the sticky content. I moved border-top from ARow to ACell and it seems to have fixed it. |
@Alchez @agritheory This is to hopefully address #239.
In order to clip the modal within the table container, I had to change it from fixed to absolute positioning. I had to rework how it positions itself as a result. The modal now gets the cumulative width of previous cells within the row/height of previous rows in the table to position itself correctly. I added an extra "pinned_extra_columns" variant in the Histoire list story where you can see the modal display under the pinned columns (I also wrapped atable in a positioned div to make sure it is positioning relative to the table and not the page) . It feels like this works a bit better than before as it is now contained within the table instead of sort of floating above everything.
I set the pinned columns to z-index 10 and the modal is 5, so we can have some leeway in between if we need it.
There is one small glitch that is confounding me where the modal is visible within the 1px row border when it is beneath sticky columns. I have no idea what is causing this, but let me know if you are seeing it as well.
