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>
31 lines
890 B
JavaScript
31 lines
890 B
JavaScript
import { injectTemplateVars } from '@ea11y-apps/global/utils/inject-template-vars';
|
||
import { StyledDescription } from '@ea11y-apps/scanner/styles/heading-structure.styles';
|
||
import { memo } from '@wordpress/element';
|
||
import { __ } from '@wordpress/i18n';
|
||
|
||
const HeadingStructureHelpText = memo(() => {
|
||
return (
|
||
<>
|
||
<StyledDescription as="p" variant="body2">
|
||
{__(
|
||
'Make sure the order of your headings makes sense, so content is read in the right order.',
|
||
'pojo-accessibility',
|
||
)}
|
||
</StyledDescription>
|
||
|
||
<StyledDescription as="p" variant="body2">
|
||
{injectTemplateVars(
|
||
__(
|
||
'{{bold}}Note:{{/bold}} Changing a heading’s level won’t affect how it looks.',
|
||
'pojo-accessibility',
|
||
),
|
||
{
|
||
bold: ({ children }) => <span>{children}</span>,
|
||
},
|
||
)}
|
||
</StyledDescription>
|
||
</>
|
||
);
|
||
});
|
||
|
||
export default HeadingStructureHelpText;
|