Skip to content

Vertical align seems to fight Flexbox #13

@roblevintennis

Description

@roblevintennis

Heya @AustinGil :)

I suppose this is obvious when you see it, but I just debugged some code where I had previously centered an icon due to align-items but then having copied curated pieces of bedrocss into my own reset.css and/or opinions.css, the vertical-align: middle appears to fight against Flexbox align-items and friend:

...
svg {
  vertical-align: middle; /* removes weird space below images */
...

https://github.com/AustinGil/bedrocss/blob/master/src/media.css#L5


Visual context

Here's the before / after behavior (note the checkmark's vertical centering against the input height):

image

Screen Shot 2022-04-23 at 5 37 16 PM

I suppose the question would be is it more or less likely that I'm going to be applying flexbox alignment to one of these media 🤔 e.g. do I just make the single override e.g. unset or initial, or, should this not be in the reset ❓ I'm not sure I have an answer -- any thoughts from your end?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions