Closed kylesuss closed 3 years ago
@domyen Hold that thought -- the new lib version might have a new setting that we need but I have to do some work to upgrade.
@domyen ok this has been updated w/ the approach that I showed you earlier. The design system now allows Input
s to customize the errorTooltipPlacement
. In consumers of the design system, logic can be setup to change the placement based on screen size, etc.
Fixes:
Unfortunately, there isn't a great way to customize the positioning based on browser window & it is a bit of a pain to setup event listeners for this sort of thing. With that in mind, I chose the
auto-end
positioning (see: https://popper.js.org/docs/v1/#popperplacements--codeenumcode) which typically means that the tooltip shows up underneath the input and at the very right side of it. I think this is better than just "auto" which places it on the bottom & centered, but maybe it is just a personal preference.@domyen thoughts on this? We seem to be slightly limited by what the lib will let us do.