Skip to content

Hover scale transform causes layout shift in flex containers #37354

Description

@sonusharma6-dsa

I'm using the card hover zoom class inside a flex layout, and when I hover over a card, it causes the neighboring flex items to shift slightly by a pixel or two.

Setting box-sizing: border-box or using outline instead of border/scale adjustment might prevent this layout shift. Let me know if there's a recommended workaround.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions