Skip to content

Commit 915fab3

Browse files
committed
feat(ui-list,shared-types): ability to override delimiter color
INSTUI-4569
1 parent 1a03763 commit 915fab3

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

packages/shared-types/src/ComponentThemeVariables.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ export type InlineListItemTheme = {
711711
fontSizeMedium: Typography['fontSizeMedium']
712712
fontSizeLarge: Typography['fontSizeLarge']
713713
color: Colors['contrasts']['grey4570']
714+
delimiterColor: Colors['contrasts']['grey125125']
714715
lineHeight: Typography['lineHeightCondensed']
715716
noneSpacing: Spacing['xSmall']
716717
pipeSpacing: Spacing['xSmall']

packages/ui-list/src/InlineList/InlineListItem/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ const generateStyle = (
136136
...delimiterVariants[delimiter!],
137137
'[class$=-inlineListItem]:last-of-type > &:last-child::after': {
138138
content: 'none'
139-
}
139+
},
140+
color: componentTheme.delimiterColor
140141
}
141142
}
142143
}

packages/ui-list/src/InlineList/InlineListItem/theme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const generateComponentTheme = (theme: Theme): InlineListItemTheme => {
4646
fontSizeMedium: typography?.fontSizeMedium,
4747
fontSizeLarge: typography?.fontSizeLarge,
4848
color: colors?.contrasts?.grey4570,
49+
delimiterColor: colors?.contrasts?.grey125125,
4950
lineHeight: typography?.lineHeightCondensed,
5051
noneSpacing: spacing?.xSmall,
5152
pipeSpacing: spacing?.xSmall,

0 commit comments

Comments
 (0)