Skip to content

Commit

Permalink
chore: adjust empty line placeholder contrast [skip e2e]
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Nov 2, 2023
1 parent de38368 commit af6ac56
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const EmptyLinePlaceholderPlugin = () => {
if (!text && editor.isEditable()) {
placeholder.style.top = `${rect.y}px`
placeholder.style.left = `${rect.x - parentRect.x + rootRect.x}px`
placeholder.style.opacity = '1'
placeholder.style.opacity = '0.65'
} else {
placeholder.style.opacity = '0'
}
Expand Down Expand Up @@ -86,8 +86,7 @@ export const EmptyLinePlaceholderPlugin = () => {
className="super-empty-line-placeholder pointer-events-none fixed text-passive-1 opacity-0"
ref={placeholderElementRef}
>
Type <span className="rounded border border-border bg-passive-4-opacity-variant px-1 py-0.5">/</span> for
commands...
Type <span className="rounded bg-passive-4-opacity-variant p-0.5">/</span> for commands...
</div>
)
}

0 comments on commit af6ac56

Please sign in to comment.