Skip to content

Include more CSS keywords for editor autocomplete#1068

Merged
erik-beus merged 6 commits into
mainfrom
chore/css-property-keywords
May 22, 2026
Merged

Include more CSS keywords for editor autocomplete#1068
erik-beus merged 6 commits into
mainfrom
chore/css-property-keywords

Conversation

@erik-beus
Copy link
Copy Markdown
Contributor

@erik-beus erik-beus commented May 22, 2026

  • Handle Property type from css-tree to ensure we include additional CSS properties (e.g. <'width'> was not mapped to auto, max-content, min-content etc.)
  • Write CSS keywords to a static file in the repo to make it easier to diff going forward (instead of building for every release)
  • Adjust scripts

The actual changes to the CSS keywords can be found in this commit diff

Closes #1041

From my localhost editor, auto completion for flex-basis looks like this:
CleanShot 2026-05-22 at 09 57 43

@erik-beus erik-beus requested a review from whitep4nth3r May 22, 2026 07:44
Copy link
Copy Markdown
Contributor

@whitep4nth3r whitep4nth3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like descriptions are missing from properties that used to have descriptions...

Comment thread packages/editor/css-properties/cssPropertyKeywords.json
Comment thread packages/editor/css-properties/cssPropertyKeywords.json
@erik-beus erik-beus merged commit 197c7d9 into main May 22, 2026
10 checks passed
@erik-beus erik-beus deleted the chore/css-property-keywords branch May 22, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't add "auto" keyword into flex-basis field

2 participants