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">
|
<style lang="scss">
|
||||||
.btn {
|
.btn {
|
||||||
/* ✅ <Button> is now back in control of its own styling again! */
|
/* ✅ <Button> is now back in control of its own styling again! */
|
||||||
[data-theme='nav'] {
|
&[data-theme='nav'] {
|
||||||
// nav-friendly styles here…
|
// nav-friendly styles here…
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue