Skip to content

Commit

Permalink
Adds address tag to template part and group & cover block.
Browse files Browse the repository at this point in the history
  • Loading branch information
amitraj2203 committed Jun 12, 2024
1 parent 35ddbfb commit ded3938
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-library/src/cover/edit/inspector-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ export default function CoverInspectorControls( {
aside: __(
"The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."
),
address: __(
'The <address> element should contain contact information for its nearest <article> or <body> ancestor.).'
),
footer: __(
'The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).'
),
Expand Down Expand Up @@ -353,6 +356,7 @@ export default function CoverInspectorControls( {
{ label: '<section>', value: 'section' },
{ label: '<article>', value: 'article' },
{ label: '<aside>', value: 'aside' },
{ label: '<address>', value: 'address' },
{ label: '<footer>', value: 'footer' },
] }
value={ tagName }
Expand Down
4 changes: 4 additions & 0 deletions packages/block-library/src/group/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ function GroupEditControls( { tagName, onSelectTagName } ) {
aside: __(
"The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."
),
address: __(
'The <address> element should contain contact information for its nearest <article> or <body> ancestor.).'
),
footer: __(
'The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).'
),
Expand All @@ -62,6 +65,7 @@ function GroupEditControls( { tagName, onSelectTagName } ) {
{ label: '<section>', value: 'section' },
{ label: '<article>', value: 'article' },
{ label: '<aside>', value: 'aside' },
{ label: '<address>', value: 'address' },
{ label: '<footer>', value: 'footer' },
] }
value={ tagName }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const htmlElementMessages = {
aside: __(
"The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."
),
address: __(
'The <address> element should contain contact information for its nearest <article> or <body> ancestor.).'
),
footer: __(
'The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).'
),
Expand Down Expand Up @@ -111,6 +114,7 @@ export function TemplatePartAdvancedControls( {
{ label: '<article>', value: 'article' },
{ label: '<aside>', value: 'aside' },
{ label: '<footer>', value: 'footer' },
{ label: '<address>', value: 'address' },
{ label: '<div>', value: 'div' },
] }
value={ tagName || '' }
Expand Down

0 comments on commit ded3938

Please sign in to comment.