Skip to content

Commit

Permalink
Merge dbc6bb5 into 4b060e4
Browse files Browse the repository at this point in the history
  • Loading branch information
PatelUtkarsh committed Sep 1, 2022
2 parents 4b060e4 + dbc6bb5 commit aab4a49
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
themeFromSourceColor,
applyTheme,
} from '@material/material-color-utilities';
import { applyRgbValue } from '../../helper/apply-rgb-value';
import { applyRgbValue } from '../../../../theme/assets/src/helper/apply-rgb-value';

const body = document.body;
export const ICONS = {
Expand Down
3 changes: 3 additions & 0 deletions plugin/assets/src/front-end/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
} from '../common/mdc-components-init';
import { initContactForm } from './contact-form';
import { masonryInit } from './masonry';
import { initDarkModeSwitch } from './dark-mode-switch';

addEventListener( 'DOMContentLoaded', () => {
initButtons();
Expand All @@ -45,3 +46,5 @@ addEventListener( 'DOMContentLoaded', () => {
initTextFields();
}
} );

initDarkModeSwitch();
3 changes: 2 additions & 1 deletion theme/assets/src/customizer/customize-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ import { debounce } from 'lodash';
* Internal dependencies
*/
import { masonryInit } from '../front-end/components/masonry';
import { ICONS as SWITCHER_ICONS } from '../front-end/components/dark-mode-switch';

import { ICONS as SWITCHER_ICONS } from '../../../../plugin/assets/src/front-end/dark-mode-switch';

export const COLOR_MODES = {
default: 'default',
Expand Down
2 changes: 0 additions & 2 deletions theme/assets/src/front-end/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { tabBarInit } from './components/tab-bar';
import { embedsInit } from './components/embeds';
import { widgetsInit } from './components/widgets';
import { masonryInit } from './components/masonry';
import { initDarkModeSwitch } from './components/dark-mode-switch';
import './components/navigation';
import './components/skip-link-focus-fix';

Expand All @@ -46,5 +45,4 @@ document.addEventListener( 'DOMContentLoaded', () => {
embedsInit();
widgetsInit();
masonryInit();
initDarkModeSwitch();
} );

0 comments on commit aab4a49

Please sign in to comment.