Skip to content

Commit ed68cbc

Browse files
committed
feat: add getClassNameForStickyHeaderWithShadow
1 parent f69e580 commit ed68cbc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Shared/Helpers.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,3 +1062,6 @@ export const deriveBorderRadiusAndBorderClassFromConfig = ({
10621062
const { top, right, bottom, left } = getSanitizedBorderConfig(borderRadiusConfig)
10631063
return `${deriveBorderClassFromConfig(borderConfig)} ${deriveBorderRadiusClassFromConfig({ top, right, bottom, left })}`
10641064
}
1065+
1066+
export const getClassNameForStickyHeaderWithShadow = (isStuck: boolean) =>
1067+
`dc__position-sticky dc__top-0 dc__transition--box-shadow ${isStuck ? 'dc__box-shadow--header' : ''}`

0 commit comments

Comments
 (0)