diff --git a/wp-content/mu-plugins/pub/locale-switcher/src/index.js b/wp-content/mu-plugins/pub/locale-switcher/src/index.js index 6af9f99d9..5c398f1e5 100644 --- a/wp-content/mu-plugins/pub/locale-switcher/src/index.js +++ b/wp-content/mu-plugins/pub/locale-switcher/src/index.js @@ -27,7 +27,7 @@ const LocaleSwitcher = ( props ) => { const closeModal = () => setOpen( false ); const [ value, setValue ] = useState( false ); - externalButton.addEventListener( 'click', ( event ) => { + externalButton?.addEventListener( 'click', ( event ) => { event.preventDefault(); openModal(); } ); diff --git a/wp-content/themes/pub/wporg-learn-2024/src/style/_wp-components.scss b/wp-content/themes/pub/wporg-learn-2024/src/style/_wp-components.scss index a2dd5f3c2..3e5011203 100644 --- a/wp-content/themes/pub/wporg-learn-2024/src/style/_wp-components.scss +++ b/wp-content/themes/pub/wporg-learn-2024/src/style/_wp-components.scss @@ -9,4 +9,9 @@ .components-modal__header { padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30) 0; + + .components-modal__header-heading { + font-family: var(--wp--preset--font-family--inter); + line-height: var(--wp--custom--heading--level-1--typography--line-height); + } }