Skip to content

Commit af10476

Browse files
committed
fix(ui-heading): ai heading won't show up on print
INSTUI-4691
1 parent e66ad32 commit af10476

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/ui-heading/src/Heading/styles.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ const generateStyle = (
153153
background: `
154154
linear-gradient(to bottom, ${componentTheme.aiTextTopGradientColor} 0%, ${componentTheme.aiTextBottomGradientColor} 100%) text`,
155155
border: 'solid transparent',
156-
WebkitTextFillColor: 'transparent'
156+
WebkitTextFillColor: 'transparent',
157+
'@media print': {
158+
background: 'transparent',
159+
WebkitTextFillColor: 'unset'
160+
}
157161
}
158162
}
159163

@@ -208,6 +212,10 @@ const generateStyle = (
208212
linear-gradient(to bottom, ${componentTheme.aiTextTopGradientColor} 0%, ${componentTheme.aiTextBottomGradientColor} 100%) text`,
209213
border: 'solid transparent',
210214
WebkitTextFillColor: 'transparent',
215+
'@media print': {
216+
background: 'transparent',
217+
WebkitTextFillColor: 'unset'
218+
},
211219
paddingRight: '.25rem'
212220
},
213221
igniteAIStacked: {

0 commit comments

Comments
 (0)