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

[bug] media-query-no-invalid fails for tailwind @media screen() {} #2557

Closed
3 tasks done
codepuncher opened this issue Feb 1, 2024 · 2 comments · Fixed by #2558
Closed
3 tasks done

[bug] media-query-no-invalid fails for tailwind @media screen() {} #2557

codepuncher opened this issue Feb 1, 2024 · 2 comments · Fixed by #2558
Labels
bug Something isn't working stale

Comments

@codepuncher
Copy link
Contributor

codepuncher commented Feb 1, 2024

Agreement

Describe the issue

Using the latest Bud Stylelint and Tailwind does not allow using the Tailwind screen function in media queries.
Related: stylelint/stylelint#6916

Temporary fix:

.stylelintrc

{
  "extends": [
    "@roots/sage/stylelint-config",
    "@roots/bud-tailwindcss/stylelint-config"
  ],
  "rules": {
    "media-query-no-invalid": null
  }
}

Expected Behavior

To not error

Actual Behavior

Produces an error regarding the unknown screen function in a media query

Steps To Reproduce

When using the following code with bud stylelint and tailwind

@media screen(lg) {
  padding-top: 1px;
}

it will produce

$ bud build

╭ sage [5ab2a2a6940f3532]                                                                                                           ./public
│
│ │ [stylelint]
│ │ resources/styles/app.css
│ │  128:12  ✖  Unexpected invalid media query "screen(lg)"  media-query-no-invalid
│ │ 1 problem (1 error, 0 warnings)
│
╰ 1 error

version

6.20.0

Logs

No response

Configuration

No response

Relevant .budfiles

No response

@johanmolen
Copy link
Sponsor

Experiencing the same issue.

Copy link

Message to comment on stale issues. If none provided, will not mark issues stale

@github-actions github-actions bot added the stale label Apr 21, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2024
@kodiakhq kodiakhq bot closed this as completed in #2558 May 5, 2024
kodiakhq bot pushed a commit that referenced this issue May 5, 2024
…wind (#2558)

Fixes #2557 

## Type of change

**PATCH: backwards compatible change**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants