Problem with media queries

Open
#103 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
tooling

Research direction

Reproduce the media-query warning in WebStorm 2021.3.1 with styled-components plugin version 213.6461.79 using the reported theme.devices.tablet snippet. Compare the editor's handling of the query with the expected styled-components syntax; done means the valid media query no longer produces the reported warning.

Written by the indexing model from the issue text.

Description

  • IDE name and version:
    Webstorm 2021.3.1
  • Styled-components plugin version:
    213.6461.79

Problem description:

Problem with media queries: @media ${({ theme }) => theme.devices.tablet} { margin-top: 0; }

Webstorm shows warning: Property 'margin-top' is allowed only in following media groups: visual

Dominant language
Kotlin
Stars
376
Forks
17
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from styled-components/webstorm-styled-components

All issues in styled-components/webstorm-styled-components

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.