• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / b3c09a172b146f894b47a5b28eaed61704b473a7

12 Apr 2024 07:56AM UTC coverage: 52.151% (-4.3%) from 56.467%
b3c09a172b146f894b47a5b28eaed61704b473a7

push

github

mhkuu
Merge branch 'trunk' of github.com:Yoast/wordpress-seo into feature/lingo-fixes

7551 of 13889 branches covered (54.37%)

Branch coverage included in aggregate %.

135 of 209 new or added lines in 53 files covered. (64.59%)

1 existing line in 1 file now uncovered.

28387 of 55023 relevant lines covered (51.59%)

40824.96 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/js/src/components/modals/editorModals/SearchAppearanceModal.js
1
/* External dependencies */
2
import { SearchIcon } from "@heroicons/react/solid";
3
import { useSelect } from "@wordpress/data";
4
import { __ } from "@wordpress/i18n";
5
import { useSvgAria } from "@yoast/ui-library/src";
6
import styled from "styled-components";
7

8
/* Internal dependencies */
9
import EditorModal from "../../../containers/EditorModal";
10
import BlockEditorSnippetEditor from "../../../containers/SnippetEditor";
11
import ElementorSnippetEditor from "../../../elementor/containers/SnippetEditor";
12

13
const StyledHeroIcon = styled( SearchIcon )`
×
14
        width: 18px;
15
        height: 18px;
16
        margin: 3px;
17
`;
18

19
/**
20
 * The Search Appearance Modal.
21
 *
22
 * @returns {JSX.Element} The Search Appearance Modal.
23
 */
24
const SearchAppearanceModal = () => {
×
25
        const svgAriaProps = useSvgAria();
×
NEW
26
        const isElementorEditor = useSelect( select => select( "yoast-seo/editor" ).getIsElementorEditor(), [] );
×
27

28
        return (
×
29
                <EditorModal
30
                        title={ __( "Search appearance", "wordpress-seo" ) }
31
                        id="yoast-search-appearance-modal"
32
                        shouldCloseOnClickOutside={ false }
33
                        SuffixHeroIcon={ <StyledHeroIcon className="yst-text-slate-500" { ...svgAriaProps } /> }
34
                >
35
                        { isElementorEditor === true && <ElementorSnippetEditor showCloseButton={ false } hasPaperStyle={ false } /> }
×
36
                        { isElementorEditor === false && <BlockEditorSnippetEditor showCloseButton={ false } hasPaperStyle={ false } /> }
×
37
                </EditorModal>
38
        );
39
};
40

41
export default SearchAppearanceModal;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc