Skip to content

Disable selection of glyph for copying and pasting? #4

Open
@andrewheiss

Description

@andrewheiss

This is a neat extension!

In a recent blog post, I did something similar with little swatches (though not for hex codes specifically):

image

I added user-select: none to the CSS for the glyph so that when users select/copy the text, the glyph doesn't get picked up too:

image

Would it be worth adding that to the inline CSS at https://github.com/mcanouil/quarto-preview-colour/blob/b2f38e4d35037e8b4f1334b5e51871f8d812856f/_extensions/preview-colour/preview-colour.lua#LL51C70-L51C70 or would that go beyond the scope of the extension?

Metadata

Metadata

Assignees

Projects

  • Status

    📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions