next.js
c4e26ab2 - Prevent inherited styles on `next/image` wrapper or sizer (#30064)

Commit
4 years ago
Prevent inherited styles on `next/image` wrapper or sizer (#30064) As a follow up to #30041 which changed `<div>` to `<span>`, this PR makes sure that unexpected styles are not applied to the image wrapper or sizer spans. For example: `.content span {}` would apply to all spans and incorrectly style the image wrapper. This PR adds [`all: initial`](https://developer.mozilla.org/en-US/docs/Web/CSS/all) to effectively reset the span styles.
Author
Parents
Loading