fix(shape-css): add pointer-events:all to header/toolbar; fix hardcoded white on lock icon

- .cc-shape-header and .cc-shape-toolbar button were missing pointer-events:all,
  causing toolbar buttons to be unclickable inside tldraw canvas
- Replace color:'white' on lock indicator with var(--cc-text-inverse)
This commit is contained in:
CC Worker 2026-05-31 22:10:08 +00:00
parent 55da04a3f7
commit 061cd22748
2 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,7 @@ export abstract class CCBaseShapeUtil<T extends CCBaseShape> extends BaseBoxShap
</div>
</button>
))}
{isLocked && <span style={{ color: 'white' }}>🔒</span>}
{isLocked && <span style={{ color: 'var(--cc-text-inverse)' }}>🔒</span>}
</div>
</div>
{/* Content */}

View File

@ -283,6 +283,7 @@
justify-content: space-between;
align-items: center;
cursor: not-allowed;
pointer-events: all;
position: relative;
z-index: 1;
background: var(--shape-header-color, var(--color-muted));
@ -311,6 +312,7 @@
display: flex;
align-items: center;
justify-content: center;
pointer-events: all;
font-size: 16px;
width: 24px;
height: 24px;