Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/ampproject/amp-wp into u…
Browse files Browse the repository at this point in the history
…pdate/support-links
  • Loading branch information
westonruter committed Nov 11, 2024
2 parents 3bbffa2 + 6386882 commit 14c15c5
Show file tree
Hide file tree
Showing 13 changed files with 2,428 additions and 1,234 deletions.
1 change: 1 addition & 0 deletions assets/src/block-editor/blocks/amp-brid-player/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const BlockEdit = (props) => {
label={__('Autoplay', 'amp')}
checked={autoPlay}
onChange={() => setAttributes({ autoPlay: !autoPlay })}
__nextHasNoMarginBottom={true}
/>
<LayoutControls
{...props}
Expand Down
1 change: 1 addition & 0 deletions assets/src/block-editor/blocks/amp-ima-video/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const BlockEdit = (props) => {
dataDelayAdRequest: !dataDelayAdRequest,
})
}
__nextHasNoMarginBottom={true}
/>
<LayoutControls
{...props}
Expand Down
2 changes: 1 addition & 1 deletion assets/src/block-editor/blocks/amp-mathml/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const settings = {
icon: 'welcome-learn-more',
keywords: [
__('Mathematical formula', 'amp'),
__('Scientific content ', 'amp'),
__('Scientific content', 'amp'),
],

attributes: {
Expand Down
1 change: 1 addition & 0 deletions assets/src/block-editor/blocks/amp-o2-player/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const BlockEdit = (props) => {
label={__('Autoplay', 'amp')}
checked={autoPlay}
onChange={() => setAttributes({ autoPlay: !autoPlay })}
__nextHasNoMarginBottom={true}
/>
<LayoutControls
{...props}
Expand Down
2 changes: 2 additions & 0 deletions assets/src/block-editor/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ const AmpLightboxToggle = (props) => {
setAttributes({ linkTo: 'none' });
}
}}
__nextHasNoMarginBottom={true}
/>
);
};
Expand Down Expand Up @@ -286,6 +287,7 @@ const AmpCarouselToggle = (props) => {
label={__('Display as carousel', 'amp')}
checked={ampCarousel}
onChange={() => setAttributes({ ampCarousel: !ampCarousel })}
__nextHasNoMarginBottom={true}
/>
);
};
Expand Down
1 change: 1 addition & 0 deletions assets/src/components/amp-setting-toggle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function AMPSettingToggle({
</div>
}
onChange={onChange}
__nextHasNoMarginBottom={true}
/>
</div>
);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/src/settings-page/paired-url-structure.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function SlugConflictsNotice({ slug, conflicts }) {

{conflicts.rewrite && (
<li>
{__('Rewrite rules: ', 'amp')}
{__('Rewrite rules:', 'amp')}
{conflicts.rewrite
.map((entity) => <code key={entity}>{entity}</code>)
.reduce((prev, curr) => [prev, ', ', curr])}
Expand Down
Loading

0 comments on commit 14c15c5

Please sign in to comment.