Skip to content

Commit

Permalink
fix: properly import Ripple and its styles
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Sep 6, 2019
1 parent b9b3e3d commit 9588c8b
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/button/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import {forwardEventsBuilder} from '@smui/common/forwardEvents.js';
import {exclude} from '@smui/common/exclude.js';
import {useActions} from '@smui/common/useActions.js';
import Ripple from '@smui/ripple/index.js';
import Ripple from '@smui/ripple/bare.js';
const forwardEvents = forwardEventsBuilder(current_component);
Expand Down
1 change: 1 addition & 0 deletions packages/button/_style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "@material/button/mdc-button";
@import "@smui/ripple/style";
@import "./mixins";
@include smui-button-core-styles;
@include smui-button__group-core-styles;
2 changes: 1 addition & 1 deletion packages/card/PrimaryAction.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import {forwardEventsBuilder} from '@smui/common/forwardEvents.js';
import {exclude} from '@smui/common/exclude.js';
import {useActions} from '@smui/common/useActions.js';
import Ripple from '@smui/ripple/index.js';
import Ripple from '@smui/ripple/bare.js';
const forwardEvents = forwardEventsBuilder(current_component);
Expand Down
1 change: 1 addition & 0 deletions packages/card/_style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import "@material/card/mdc-card";
@import "@smui/button/style";
@import "@smui/icon-button/style";
@import "@smui/ripple/style";

.smui-card--padded, .smui-card__content, .smui-card__primary-action--padded {
padding: 16px;
Expand Down
2 changes: 1 addition & 1 deletion packages/fab/Fab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import {forwardEventsBuilder} from '@smui/common/forwardEvents.js';
import {exclude} from '@smui/common/exclude.js';
import {useActions} from '@smui/common/useActions.js';
import Ripple from '@smui/ripple/index.js';
import Ripple from '@smui/ripple/bare.js';
const forwardEvents = forwardEventsBuilder(current_component);
Expand Down
1 change: 1 addition & 0 deletions packages/fab/_style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import "@material/fab/mdc-fab";
@import "@smui/ripple/style";
@import "./mixins";
@include smui-fab-core-styles;
2 changes: 1 addition & 1 deletion packages/icon-button/IconButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import {forwardEventsBuilder} from '@smui/common/forwardEvents.js';
import {exclude} from '@smui/common/exclude.js';
import {useActions} from '@smui/common/useActions.js';
import Ripple from '@smui/ripple/index.js';
import Ripple from '@smui/ripple/bare.js';
const forwardEvents = forwardEventsBuilder(current_component, ['MDCIconButtonToggle:change']);
Expand Down
1 change: 1 addition & 0 deletions packages/icon-button/_style.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import "@material/icon-button/mdc-icon-button";
@import "@smui/ripple/style";
2 changes: 1 addition & 1 deletion packages/list/Item.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
import {forwardEventsBuilder} from '@smui/common/forwardEvents.js';
import {exclude} from '@smui/common/exclude.js';
import {useActions} from '@smui/common/useActions.js';
import Ripple from '@smui/ripple/index.js';
import Ripple from '@smui/ripple/bare.js';
const dispatch = createEventDispatcher();
const forwardEvents = forwardEventsBuilder(current_component);
Expand Down
1 change: 1 addition & 0 deletions packages/list/_style.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import "@material/list/mdc-list";
@import "@smui/ripple/style";
3 changes: 3 additions & 0 deletions packages/ripple/bare.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Ripple from './Ripple.js';

export default Ripple;
5 changes: 2 additions & 3 deletions packages/ripple/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Ripple from './Ripple.js';
import './_index.scss';

export default Ripple;
export * from './bare.js';
export {default} from './bare.js';

0 comments on commit 9588c8b

Please sign in to comment.