Skip to content

Commit 0953564

Browse files
committed
GlobalStylesUI: Add cursor control token to preview content styles
1 parent c53c5fe commit 0953564

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

packages/global-styles-ui/src/preview-wrapper.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,15 @@ function PreviewWrapper( {
107107
tabIndex={ -1 }
108108
>
109109
<motion.div
110+
className={
111+
withHoverView
112+
? 'global-styles-ui-preview__content'
113+
: undefined
114+
}
110115
style={ {
111116
height: normalizedHeight * ratio,
112117
width: '100%',
113118
background: gradientValue ?? backgroundColor,
114-
cursor: withHoverView ? 'pointer' : undefined,
115119
} }
116120
initial="start"
117121
animate={

packages/global-styles-ui/src/style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
width: 100%;
2222
}
2323

24+
.global-styles-ui-preview__content {
25+
cursor: var(--wpds-cursor-control);
26+
}
27+
2428
.global-styles-ui-typography-preview {
2529
display: flex;
2630
align-items: center;

0 commit comments

Comments
 (0)