PluginProbe
Extendify / trunk
Extendify vtrunk
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / QuickEdit / components / modals / ModalCloseButton.jsx

ModalCloseButton.jsx in Extendify trunk, at src/QuickEdit/components/modals/ModalCloseButton.jsx

16 lines 448 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { Button } from '@wordpress/components';
2 import { __ } from '@wordpress/i18n';
3 import { close } from '@wordpress/icons';
4
5 // Modal's built-in dismiss X wraps its Button in a Tooltip, which
6 // intercepts the click on the live frontend — the X reads as dead.
7 export const ModalCloseButton = ({ onClick }) => (
8 <Button
9 size="compact"
10 icon={close}
11 label={__('Close', 'extendify-local')}
12 showTooltip={false}
13 onClick={onClick}
14 />
15 );
16