Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.16 KB

no-physical-properties.md

File metadata and controls

60 lines (42 loc) · 1.16 KB

no-physical-properties

Encourage the use of logical properties over physical properties to foster a responsive and adaptable user interface.

📋 This rule is enabled in plugin:@pandacss/all.

Rule details

❌ Examples of incorrect code:

import { css } from './panda/css';

const styles = css({ left: '0' });
import { css } from './panda/css';

function App(){
  return <div className={css({ marginLeft: '4' })} />;
};
import { Circle } from './panda/jsx';

function App(){
  return <Circle _hover={{  borderBottom: 'solid 1px' }} />;
}

✔️ Examples of correct code:

import { css } from './panda/css';

const styles = css({ insetInlineStart: '0' });
import { css } from './panda/css';

function App(){
  return <div className={css({ marginInlineStart: '4' })} />;
};
import { Circle } from './panda/jsx';

function App(){
  return <Circle _hover={{  borderBlockEnd: 'solid 1px' }} />;
}

Resources