Minor Changes
-
df2546a: BREAKING 💥
Remove
linkBox
pattern in favor of using addingposition: relative
when using thelinkOverlay
pattern.Before
import { linkBox, linkOverlay } from "styled-system/patterns"; const App = () => { return ( <div className={linkBox()}> <img src="https://via.placeholder.com/150" alt="placeholder" /> <a href="#" className={linkOverlay()}> Link </a> </div> ); };
After
import { css } from "styled-system/css"; import { linkOverlay } from "styled-system/patterns"; const App = () => { return ( <div className={css({ pos: "relative" })}> <img src="https://via.placeholder.com/150" alt="placeholder" /> <a href="#" className={linkOverlay()}> Link </a> </div> ); };