Closed layershifter closed 6 months ago
This PR cleanups docs about CSS shorthands limitations & deprecates the most of CSS shorthands functions as they are natively supported (see #531 for codemod).
import { shorthands } from '@griffel/react'; const useClasses = makeStyles({ root: { ...shorthands.padding('2px'), }, });
import { shorthands } from '@griffel/react'; const useClasses = makeStyles({ root: { padding: '2px', }, });
Fixes #531.
🤖 This report was generated against 0f2eb5e6f199314b47c5a6cb0ef652f3eaa9ea08
This PR cleanups docs about CSS shorthands limitations & deprecates the most of CSS shorthands functions as they are natively supported (see #531 for codemod).
Before
After
Fixes #531.