Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Feature request: Css variable in Layout component not present in autocomplete of child #941

Closed
nojaf opened this issue Aug 21, 2024 · 1 comment
Labels
needs triage Issue needs to be triaged

Comments

@nojaf
Copy link

nojaf commented Aug 21, 2024

Describe the Bug

When I define CSS variables in a Layout or page

<style>
	:root {
		--yellow: #FF0;
		--red: #F00;
	}
</style>

I don't get autocomplete for these in my component files.

Steps to Reproduce

  1. npm init astro using template
  2. Create Layout with CSS variable
  3. Try and consume in child component
  4. No autocomplete

Link to Minimal Reproducible Example

https://github.com/nojaf/astro-variable-repro

@github-actions github-actions bot added the needs triage Issue needs to be triaged label Aug 21, 2024
@Princesseuh
Copy link
Member

This is not a bug, the feature just isn't there.

@nojaf nojaf changed the title 🐛 BUG: css variable in Layout component not present in autocomplete of child Feature request: Css variable in Layout component not present in autocomplete of child Aug 21, 2024
@withastro withastro locked and limited conversation to collaborators Aug 21, 2024
@Princesseuh Princesseuh converted this issue into discussion #942 Aug 21, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants