sanity
Version:
Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches
18 lines (16 loc) • 435 B
text/typescript
import {css} from 'styled-components'
/**
* A CSS helper that extends the clickable area of a component by adding a pseudo-element.
* This creates a larger hit area for better usability without affecting the visual size.
*/
export const oversizedButtonStyle = css`
position: relative;
cursor: default;
&::before {
content: '';
position: absolute;
display: block;
inset: -4px;
border-radius: 9999px;
}
`