Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selector suggestion in Style editor tab #3534

Open
5e-Cleric opened this issue Jun 16, 2024 · 2 comments
Open

Selector suggestion in Style editor tab #3534

5e-Cleric opened this issue Jun 16, 2024 · 2 comments
Labels
complicated Epic UI/UX User Interface, user experience

Comments

@5e-Cleric
Copy link
Member

Your idea:

Other editors have an automatic suggestion box with the most used selectors, and it would be a great addition to our tool.

I got the idea from the MagicCSS extension:
image

And asked in their github for how they come up with this list:

webextensions/live-css-editor#141

This should give us an idea on where to start. We'd need to have the DOM rendered to grab a list of al used classes, then hopefully remove the ones we don't want users to use(.columnWrapper, .blank...) and provide those as suggestions when writing a dot, or any selector.

@5e-Cleric 5e-Cleric added complicated Epic UI/UX User Interface, user experience labels Jun 16, 2024
@dbolack-ab
Copy link
Collaborator

Does codemirror support suggestions?

@calculuschild
Copy link
Member

calculuschild commented Jul 8, 2024

Does codemirror support suggestions?

We use suggestions already for emojis.

Also, jeddai already basically made this in PR #2905, but for the text editor tab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complicated Epic UI/UX User Interface, user experience
Projects
None yet
Development

No branches or pull requests

3 participants