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:
Angie 2022-01-31 22:28:58 +01:00 committed by GitHub
parent 1e746e1071
commit d8b50c9e68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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…
}
}