Skip to content

Commit

Permalink
feat: deprecate leftand right rtl utils functions
Browse files Browse the repository at this point in the history
They existed as Styled Components utils.
Can be replaced by css `start` and `end` properties
  • Loading branch information
DSil committed Oct 22, 2024
1 parent 4bb5ad7 commit 5b97a63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/orbit-components/src/utils/rtl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@ export const rtlSpacing: RtlSpacing =
return parts.length === 4 ? [parts[0], parts[3], parts[2], parts[1]].join(" ") : value;
};

/**
* @deprecated This function is deprecated. Use `start` properties instead.
*/
export const left = leftToRight("left", "right");

/**
* @deprecated This function is deprecated. Use `end` properties instead.
*/
export const right = leftToRight("right", "left");

0 comments on commit 5b97a63

Please sign in to comment.