Skip to content

Commit

Permalink
feat: Added inset to PositionStyleProps (#2129)
Browse files Browse the repository at this point in the history
Add a new `inset` property to position props list.

Resolves: #2100

[category:Components]
  • Loading branch information
thunguyen19 committed Apr 3, 2023
1 parent 4b98300 commit 62a4a55
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/react/layout/lib/utils/position.ts
Expand Up @@ -30,6 +30,10 @@ export type PositionStyleProps = {
* - no bidirectional support
* */
left?: number | string;
/**
* - sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)
*/
inset?: number | string;
/**
* - sets [CSS inset-inline-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset-inline-start)
* - bidirectional support
Expand Down Expand Up @@ -73,6 +77,11 @@ export const positionStyleFnConfigs: StyleFnConfig[] = [
properties: ['left'],
system: 'none',
},
{
name: 'inset',
properties: ['inset'],
system: 'none',
},
{
name: 'insetInlineStart',
properties: ['insetInlineStart'],
Expand Down

0 comments on commit 62a4a55

Please sign in to comment.