Shopify / polaris

Shopify’s design system to help us work together to build a great experience for all of our merchants.
https://polaris.shopify.com
Other
5.77k stars 1.17k forks source link

[Polaris for VS Code] Autocomplete suggestions are not relevant to the CSS property being defined #11606

Open yurm04 opened 7 months ago

yurm04 commented 7 months ago

Summary

The extension should only be suggesting tokens that are relevant to the css property being defined e.g. if you are defining a color the autocomplete suggestion should be color tokens

Expected behavior

I should only see tokens that are relevant to the CSS property i'm defining

Actual behavior

The autocomplete is suggesting all tokens in alphabetical order. eg. I'm seeing --p-border-radius first in the list when defining a color

Screenshot 2024-02-14 at 2 59 56 PM

Steps to reproduce

[Link to sandbox]()

  1. Open a css/scss file
  2. add in a css property style definition
  3. start to add in a polaris token --p-
  4. the suggested tokens are not prioritized in order of relevance

Are you using React components?

None

Polaris version number

No response

Browser

No response

Device

No response

github-actions[bot] commented 3 days ago

Hi! We noticed there hasn’t been activity on this issue in a while. After 30 days, it will close automatically.

If it’s still relevant, or you have updates, comment and let us know. And don’t worry, you can always re-open later if needed.