VEuPathDB / CoreUI

Core UI for VeuPathDB applications. Provides components, style definitions, and utilities to enable developers to rapidly assemble complex applications with consistent UI and UX across our portfolio of sites.
1 stars 0 forks source link

Fix modal content overflow #69

Closed chowington closed 2 years ago

chowington commented 2 years ago

Warning: not extensively tested! 😅

asizemore commented 2 years ago

@jernestmyers or @chowington are either of you on linux? I'm curious if the changes here may reintroduce some issues people found a while back with the modal styling (slack message). I'm only concerned because i noticed that the changes in this PR revert some of the changes from this commit that fixed some browser compatibility styling issues.

I'm on a mac and things are looking good here btw!

asizemore commented 2 years ago

@jernestmyers or @chowington are either of you on linux? I'm curious if the changes here may reintroduce some issues people found a while back with the modal styling (slack message). I'm only concerned because i noticed that the changes in this PR revert some of the changes from this commit that fixed some browser compatibility styling issues.

I'm on a mac and things are looking good here btw!

jernestmyers commented 2 years ago

@asizemore I'm also on Mac.

chowington commented 2 years ago

@jernestmyers @asizemore Sorry to leave this one hanging while I finished up some subsetting modal work!

I did some storybook testing. As a reminder, here's the 1px overflow we have currently:

image

Here's the modal in Chrome (on Linux) with my proposed changes (other browsers seemed fine):

100% zoom image

80% zoom image

So at normal zoom everything is fine, but depending on what other zoom level you're at, we get a 1px white border between the grey border and the content on some sides.

I didn't find a good way around this (somehow), so for now I propose we choose between which visual glitch we would rather live with:

1) 1px content overflow at bottom on all zoom levels & browsers 2) 1px white border on varying sides at varying zoom levels (not 100%) on Chrome

chowington commented 2 years ago

I prefer living with 2

jernestmyers commented 2 years ago

I vote option 2. Much more subtle.

asizemore commented 2 years ago

i vote for 2 as well!