diff --git a/projects/plugins/boost/app/assets/src/js/features/page-cache/meta/meta.module.scss b/projects/plugins/boost/app/assets/src/js/features/page-cache/meta/meta.module.scss index 5f4a0aef0d735..19c78fbced9d8 100644 --- a/projects/plugins/boost/app/assets/src/js/features/page-cache/meta/meta.module.scss +++ b/projects/plugins/boost/app/assets/src/js/features/page-cache/meta/meta.module.scss @@ -91,3 +91,24 @@ } } } + +.example-wrapper { + position: relative; + display: inline; + + .example-button { + position: relative; + z-index: 10; + } + + .tooltip-wrapper { + position: absolute; + top: 0; + left: -10px; + z-index: 9; + + .tooltip :global(.icon-tooltip-container .components-popover__content) { + width: 150px; + } + } +} diff --git a/projects/plugins/boost/app/assets/src/js/features/page-cache/meta/meta.tsx b/projects/plugins/boost/app/assets/src/js/features/page-cache/meta/meta.tsx index fd77c8c34b16a..1d88db1075952 100644 --- a/projects/plugins/boost/app/assets/src/js/features/page-cache/meta/meta.tsx +++ b/projects/plugins/boost/app/assets/src/js/features/page-cache/meta/meta.tsx @@ -1,4 +1,4 @@ -import { Button, Notice } from '@automattic/jetpack-components'; +import { Button, IconTooltip, Notice } from '@automattic/jetpack-components'; import { createInterpolateElement } from '@wordpress/element'; import { __, _n, sprintf } from '@wordpress/i18n'; import ChevronDown from '$svg/chevron-down'; @@ -179,7 +179,7 @@ const BypassPatterns = ( {
{ __( 'Error: Invalid format', 'jetpack-boost' ) }
-+