diff --git a/assets/dev/js/admin/hello-admin.scss b/assets/dev/js/admin/hello-admin.scss index 72bbf348..548c4dee 100644 --- a/assets/dev/js/admin/hello-admin.scss +++ b/assets/dev/js/admin/hello-admin.scss @@ -42,6 +42,20 @@ background: #ffffff; } + .components-notice { + margin: 0; + margin-block-end: 20px; + + .dashicon { + padding-inline-end: 10px; + color: #f0b849; + } + + button { + display: none; + } + } + .code-example { display: inline-block; margin-block-end: 1.5rem; diff --git a/assets/dev/js/admin/pages/panels/scripts-styles.js b/assets/dev/js/admin/pages/panels/scripts-styles.js index 7cb7302f..c41ad8a4 100644 --- a/assets/dev/js/admin/pages/panels/scripts-styles.js +++ b/assets/dev/js/admin/pages/panels/scripts-styles.js @@ -1,29 +1,34 @@ import { __ } from '@wordpress/i18n'; import { SETTINGS } from '../settings.js'; -import { PanelBody, ToggleControl } from '@wordpress/components'; +import { PanelBody, ToggleControl, Notice, Dashicon } from '@wordpress/components'; export const PanelScriptsStyles = ( { settingsData, updateSettings } ) => { return ( + + + { __( 'Be cautious, disabling some of the following options may break your website.', 'hello-elementor' ) } + + updateSettings( SETTINGS.EMOJI, value ) } /> updateSettings( SETTINGS.OEMBED_SCRIPT, value ) } /> - <script type="text/javascript" src="https://{ window.location.hostname }/wp-includes/js/wp-embeds.min.js" /> + <script type="text/javascript" src="https://{ window.location.hostname }/wp-includes/js/wp-embed.min.js" /> updateSettings( SETTINGS.CLASSIC_THEME_STYLES, value ) } /> @@ -31,14 +36,15 @@ export const PanelScriptsStyles = ( { settingsData, updateSettings } ) => { updateSettings( SETTINGS.GUTENBERG, value ) } /> + <link rel="stylesheet" href="http://dev.local/wp-includes/css/dist/block-library/style.css" /> updateSettings( SETTINGS.HELLO_STYLE, value ) } /> @@ -46,7 +52,7 @@ export const PanelScriptsStyles = ( { settingsData, updateSettings } ) => { updateSettings( SETTINGS.HELLO_THEME, value ) } />