mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-21 07:09:20 +08:00
* [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * Add mixpanel events * Add mixpanel events * Add mixpanel events * Exclude adminbar from css rule * Exclude adminbar from css rule * Exclude adminbar from css rule * Exclude adminbar from css rule * Exclude adminbar from css rule * Exclude adminbar from css rule * Update modules/remediation/assets/js/actions/styles.js Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com> * Exclude adminbar from css rule * Exclude adminbar from css rule * Update modules/scanner/assets/js/hooks/use-color-contrast-form.js Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com> * Exclude adminbar from css rule * Exclude adminbar from css rule * fix quota * fix quota * fix quota * fix quota * fix quota * fix quota * fix quota * fix linter * [APP-1825] Add remove/disable category * [APP-1825] Add remove/disable category --------- Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com>
29 lines
827 B
JavaScript
29 lines
827 B
JavaScript
import BanIcon from '@elementor/icons/BanIcon';
|
|
import Button from '@elementor/ui/Button';
|
|
import IconButton from '@elementor/ui/IconButton';
|
|
import { useManageActions } from '@ea11y-apps/scanner/hooks/use-manage-actions';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
export const DisableButton = ({ group }) => {
|
|
const { updateAllRemediationForPage } = useManageActions();
|
|
return group ? (
|
|
<IconButton
|
|
size="tiny"
|
|
color="secondary"
|
|
aria-label={__('Disable all remediations', 'pojo-accessibility')}
|
|
onClick={updateAllRemediationForPage(false, group)}
|
|
>
|
|
<BanIcon fontSize="tiny" />
|
|
</IconButton>
|
|
) : (
|
|
<Button
|
|
startIcon={<BanIcon />}
|
|
size="small"
|
|
color="secondary"
|
|
variant="text"
|
|
onClick={updateAllRemediationForPage(false)}
|
|
>
|
|
{__('Disable all', 'pojo-accessibility')}
|
|
</Button>
|
|
);
|
|
};
|