Issue Positioning Buttons, Some with Outline, Some Not
Jason Ackerman•
I am having a strange issue with these buttons. Whenever I apply the outline class to the button it shifts it up by a pixel or two and it doesn't line up with the other non-outline buttons, as seen here (the border is just there to make this issue clear): Screen Shot 2020-10-15 at 2.05.03 PM.png16.1 KB
Anyone have any ideas on this? Adding mt-1, -mt-1, mb-1, and -mb-1 doesn't help, it just moves all three buttons up or down. Thanks!
Note - it definitely seems related to the outline class, because when I remove it they all line up fine.
Even stranger, it actually lines up correctly in production (on Heroku). Maybe I should just ignore it?
Chris Oliver•
Good question. I will have to play with that.
I guess the outline should not affect the size of the element according to this:
Unlike border, the outline is drawn outside the element's border, and may overlap other content. Also, the outline is NOT a part of the element's dimensions; the element's total width and height is not affected by the width of the outline.