mirror of
https://ghproxy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-07-21 12:16:59 +08:00
* New: Add the heading structure components [APP-1792] (#391) * New: Add the new rules [APP-1792] * New: Add the BE integration [APP-1792] * Fix: Fix QA issues [APP-1792] * merge latest dev * merge latest dev * merge latest dev * merge latest dev * merge latest dev * merge latest dev * add reset to initial --------- Co-authored-by: Pavlo Kniazevych <139438463+pkniazevych@users.noreply.github.com> Co-authored-by: Kniazevych <pavlok@elementor.red>
28 lines
845 B
JavaScript
28 lines
845 B
JavaScript
import Box from '@elementor/ui/Box';
|
|
import Typography from '@elementor/ui/Typography';
|
|
import { ErrorImage } from '@ea11y-apps/scanner/images';
|
|
import { StateContainer } from '@ea11y-apps/scanner/styles/app.styles';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
const HeadingStructureHeadingTreeEmpty = () => {
|
|
return (
|
|
<StateContainer>
|
|
<ErrorImage />
|
|
|
|
<Box sx={{ maxWidth: '300px' }}>
|
|
<Typography variant="h5" align="center" sx={{ mb: 2 }}>
|
|
{__('No headings found', 'pojo-accessibility')}
|
|
</Typography>
|
|
|
|
<Typography variant="body2" align="center">
|
|
{__(
|
|
'Each page should have a main heading (H1) to establish proper structure and help users understand the page content.',
|
|
'pojo-accessibility',
|
|
)}
|
|
</Typography>
|
|
</Box>
|
|
</StateContainer>
|
|
);
|
|
};
|
|
|
|
export default HeadingStructureHeadingTreeEmpty;
|