chore(frontend): add Tiptap placeholder CSS and lock Tiptap deps
Some checks failed
CI / Unit & Component Tests (push) Failing after 3m30s
CI / OCR Service Tests (push) Successful in 41s
CI / Backend Unit Tests (push) Failing after 3m10s
CI / Unit & Component Tests (pull_request) Failing after 3m11s
CI / OCR Service Tests (pull_request) Successful in 38s
CI / Backend Unit Tests (pull_request) Failing after 3m4s
Some checks failed
CI / Unit & Component Tests (push) Failing after 3m30s
CI / OCR Service Tests (push) Successful in 41s
CI / Backend Unit Tests (push) Failing after 3m10s
CI / Unit & Component Tests (pull_request) Failing after 3m11s
CI / OCR Service Tests (pull_request) Successful in 38s
CI / Backend Unit Tests (pull_request) Failing after 3m4s
Placeholder uses ::before pseudo-element on the contenteditable's data-placeholder attribute, only visible when the editor is unfocused and empty. Removes the default ProseMirror focus ring since the outer wrapper provides its own. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -416,6 +416,23 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* ─── Tiptap editor ─────────────────────────────────────────────────────────── */
|
||||
|
||||
/* Placeholder: shown on the inner contenteditable when the editor is empty
|
||||
and unfocused. Uses the data-placeholder attribute set via editorProps. */
|
||||
.tiptap-editor-inner[data-placeholder]:not(:focus)::before {
|
||||
content: attr(data-placeholder);
|
||||
color: var(--c-ink-3);
|
||||
pointer-events: none;
|
||||
float: left;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* Remove default ProseMirror focus ring — the outer wrapper has its own. */
|
||||
.tiptap-editor-inner:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
@keyframes slide {
|
||||
0% {
|
||||
transform: translateX(-100%);
|
||||
|
||||
Reference in New Issue
Block a user