I have a flex container which displays a horizontal scroll bar when the number of flex items exceeds the available viewport width.
This works fine until I add a pseudo element (down caret) to one of the items, causing a vertical scroll bar to appear.
As expected, adding overflow-y: hidden
to my container will hide part of my pseudo element. So my question is how can I prevent a vertical scroll bar when trying to independently set the x-axis to 'auto' only?