mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Missing '&' in example of scoped styles (#2485)
Style is written in SCSS, so there is missing '&' in nesting data-theme
This commit is contained in:
parent
1e746e1071
commit
d8b50c9e68
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ const { theme } = Astro.props;
|
|||
<style lang="scss">
|
||||
.btn {
|
||||
/* ✅ <Button> is now back in control of its own styling again! */
|
||||
[data-theme='nav'] {
|
||||
&[data-theme='nav'] {
|
||||
// nav-friendly styles here…
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue