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 / Library / components / topbar / CloseButton.jsx

CloseButton.jsx in Extendify trunk, at src/Library/components/topbar/CloseButton.jsx

21 lines 623 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from '@wordpress/i18n';
2
3 export const CloseButton = ({ onClose }) => (
4 <button
5 className="block h-6 w-6 bg-transparent p-px text-inherit outline-hidden focus:shadow-none focus:ring-wp focus:ring-design-main"
6 type="button"
7 onClick={onClose}
8 data-test="modal-close-button"
9 aria-label={__('Close', 'extendify-local')}
10 >
11 <svg
12 style={{ fill: 'currentColor' }}
13 xmlns="http://www.w3.org/2000/svg"
14 viewBox="0 0 24 24"
15 >
16 <title>{__('Close', 'extendify-local')}</title>
17 <path d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z" />
18 </svg>
19 </button>
20 );
21