Skip to content

Commit

Permalink
docs: fix ripple color on colored button demo
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Jun 29, 2023
1 parent d1610c8 commit 9ba8fac
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/site/src/routes/demo/badge/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
</Demo>

<Demo
component={CustomColor}
files={['badge/_CustomColor.svelte', 'badge/_CustomColor.scss']}
component={Colored}
files={['badge/_Colored.svelte', 'badge/_Colored.scss']}
>
Colored (using Sass mixins)
</Demo>
Expand All @@ -37,6 +37,6 @@
import Simple from './_Simple.svelte';
import Square from './_Square.svelte';
import SecondaryColor from './_SecondaryColor.svelte';
import CustomColor from './_CustomColor.svelte';
import Colored from './_Colored.svelte';
import PositionAlign from './_PositionAlign.svelte';
</script>
2 changes: 2 additions & 0 deletions packages/site/src/routes/demo/button/_Colored.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
@include button.outline-color(color-palette.$green-600);
@include button.ink-color(color-palette.$green-600);
}

@include button.ripple-states(color-palette.$green-600);
}
6 changes: 3 additions & 3 deletions packages/site/src/routes/demo/paper/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
</Demo>

<Demo
component={CustomColor}
files={['paper/_CustomColor.svelte', 'paper/_CustomColor.scss']}
component={Colored}
files={['paper/_Colored.svelte', 'paper/_Colored.scss']}
>
Colored (using Sass mixins)
</Demo>
Expand All @@ -45,7 +45,7 @@
import Square from './_Square.svelte';
import PrimaryColor from './_PrimaryColor.svelte';
import SecondaryColor from './_SecondaryColor.svelte';
import CustomColor from './_CustomColor.svelte';
import Colored from './_Colored.svelte';
import ElevationTransition from './_ElevationTransition.svelte';
</script>

Expand Down
4 changes: 2 additions & 2 deletions packages/site/src/site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@use './app';

// Demo styles.
@use './routes/demo/badge/_CustomColor.scss' as badge-custom-color;
@use './routes/demo/badge/_Colored.scss' as badge-custom-color;
@use './routes/demo/button/_Colored.scss' as button-colored;
@use './routes/demo/button/_Notched.scss';
@use './routes/demo/button/_Round.scss';
Expand All @@ -30,7 +30,7 @@
@use './routes/demo/image-list/_Simple.scss';
@use './routes/demo/linear-progress/_Colored.scss' as linear-progress-colored;
@use './routes/demo/menu-surface/_ManualAnchor.scss';
@use './routes/demo/paper/_CustomColor.scss' as paper-custom-color;
@use './routes/demo/paper/_Colored.scss' as paper-custom-color;
@use './routes/demo/radio/_Colored.scss' as radio-colored;
@use './routes/demo/snackbar/_Colors.scss';
@use './routes/demo/switch/_Colored.scss' as switch-colored;
Expand Down

0 comments on commit 9ba8fac

Please sign in to comment.