-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move html element help messages to the block library utils. (#68708)
* Move html element help messages to the block library utils. * Make help message for the div element more generic. Co-authored-by: afercia <afercia@git.wordpress.org> Co-authored-by: fabiankaegy <fabiankaegy@git.wordpress.org>
- Loading branch information
1 parent
a89831f
commit ba9f079
Showing
7 changed files
with
41 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { __ } from '@wordpress/i18n'; | ||
|
||
export const htmlElementMessages = { | ||
article: __( | ||
'The <article> element should represent a self-contained, syndicatable portion of the document.' | ||
), | ||
aside: __( | ||
"The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content." | ||
), | ||
div: __( | ||
'The <div> element should only be used if the block is a design element with no semantic meaning.' | ||
), | ||
footer: __( | ||
'The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).' | ||
), | ||
header: __( | ||
'The <header> element should represent introductory content, typically a group of introductory or navigational aids.' | ||
), | ||
main: __( | ||
'The <main> element should be used for the primary content of your document only.' | ||
), | ||
nav: __( | ||
'The <nav> element should be used to identify groups of links that are intended to be used for website or page content navigation.' | ||
), | ||
section: __( | ||
"The <section> element should represent a standalone portion of the document that can't be better represented by another element." | ||
), | ||
}; |