Skip to content

Commit 4158f3f

Browse files
authored
Docs - LiveCode in table cell - block interaction (#3610)
* LiveCode in table cell - block interaction * bump version * Changing for wrapper with pointerEvents * remove unused * moving style to css
1 parent f8ab0d4 commit 4158f3f

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

docuilib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uilib-docs",
3-
"version": "3.9.0",
3+
"version": "3.10.0",
44
"main": "./src/index.ts",
55
"scripts": {
66
"docusaurus": "docusaurus",

docuilib/src/components/pageComponents/ContentItem.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
top: 0px;
1111
}
1212

13+
.blocker {
14+
pointer-events: none;
15+
}
16+
1317
.componentExample {
1418
display: flex;
1519
justify-content: space-between;

docuilib/src/components/pageComponents/ContentItem.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ const ComponentItem = (props: ComponentItemProps) => {
5353
}, []);
5454

5555
const componentPreview = (
56-
<LiveProvider code={code} scope={ReactLiveScope}>
57-
<LivePreview/>
58-
</LiveProvider>
56+
<div className={styles.blocker}>
57+
<LiveProvider code={code} scope={ReactLiveScope}>
58+
<LivePreview/>
59+
</LiveProvider>
60+
</div>
5961
);
6062

6163
const codePreview = <CodeBlock snippet={code} title="Code Example"/>;

0 commit comments

Comments
 (0)