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

Properties with multiple values are not matched against shortcuts. #3807

Open
4 tasks done
Curstantine opened this issue May 15, 2024 · 0 comments · May be fixed by #3810
Open
4 tasks done

Properties with multiple values are not matched against shortcuts. #3807

Curstantine opened this issue May 15, 2024 · 0 comments · May be fixed by #3810

Comments

@Curstantine
Copy link

Curstantine commented May 15, 2024

UnoCSS version

0.60.2

Describe the bug

When using properties with multiple values (e.g. transition-colors,opacity), the vite plugin returns unmatched warnings.

[unocss] unmatched utility "transition-colors,opacity" in shortcut "input"

With the uno.config.js:

import { presetUno } from "unocss";

/** @type {import("unocss").UserConfig<import("unocss/preset-uno").Theme>} */
const conf = {
    presets: [
        presetUno(),
    ],
    shortcuts: {
      "input": "w-32 h-10 bg-black hover:bg-red transition-colors,opacity"
    },
};

export default conf;

Reproduction

  1. Create a sample app with vite and unocss.
  2. Add preset-uno, and a shortcut that depends on a transition-prop,prop value. e.g. transition-colors,opacity allowed by the transition- matcher.

Minimal reproduction: https://github.com/Curstantine/issue-unocss-shortcut-multi-property/

System Info

OS: Windows 11
Package Manager: pnpm@9.1.1
Framework: Not applicable

Validations

zyyv added a commit to zyyv/unocss that referenced this issue May 16, 2024
@zyyv zyyv linked a pull request May 16, 2024 that will close this issue
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 a pull request may close this issue.

1 participant