Skip to content

Commit

Permalink
feat: add outlineOffset property (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saint Abomination committed Apr 14, 2022
1 parent 1fd72c6 commit 4dac9a3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/system/src/styles/borders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,13 @@ export const outlineStyle = style<OutlineStyleProps>({
themeGet: getBorderStyle,
})

export interface OutlineOffsetProps<T extends ITheme = Theme> {
outlineOffset?: SystemProp<ThemeBorderWidth<T> | CSS.Property.OutlineOffset, T>
}
export const outlineOffset = style<OutlineOffsetProps>({
prop: 'outlineOffset',
})

// Radius

export type ThemeRadius<T extends ITheme = Theme> = ThemeNamespaceValue<
Expand Down Expand Up @@ -477,6 +484,7 @@ export interface BordersProps<T extends ITheme = Theme>
OutlineColorProps<T>,
OutlineWidthProps<T>,
OutlineStyleProps<T>,
OutlineOffsetProps<T>,
DivideXProps<T>,
DivideYProps<T>,
DivideXReverseProps<T>,
Expand Down Expand Up @@ -512,6 +520,7 @@ export const borders = compose<BordersProps>(
outlineColor,
outlineWidth,
outlineStyle,
outlineOffset,
divideX,
divideY,
divideXReverse,
Expand Down

0 comments on commit 4dac9a3

Please sign in to comment.