Skip to content

Commit

Permalink
Fix SelectControl deprecation warning
Browse files Browse the repository at this point in the history
Gutenberg added a deprecation warning for SelectControl via WordPress/gutenberg#38730
This opts in to that behavior and adds the margin top to the ExternalLink below (therefor needing block layout to get the margin to take effect)
  • Loading branch information
igorschoester committed Sep 12, 2024
1 parent 1584e5a commit 6565d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/js/src/components/PrimaryTaxonomyPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class PrimaryTaxonomyPicker extends Component {
id={ fieldId }
terms={ this.state.selectedTerms }
/>
<ExternalLink href={ learnMoreLink }>
<ExternalLink className="yst-inline-block yst-mt-2" href={ learnMoreLink }>
{ __( "Learn more", "wordpress-seo" ) }
<span className="screen-reader-text">
{ __( "Learn more about the primary category.", "wordpress-seo" ) }
Expand Down
1 change: 1 addition & 0 deletions packages/js/src/components/TaxonomyPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const TaxonomyPicker = ( { id, value, terms, label, onChange } ) => {

return (
<SelectControl
__nextHasNoMarginBottom={ true }
__next40pxDefaultSize={ true }
id={ id }
label={ label }
Expand Down

0 comments on commit 6565d5e

Please sign in to comment.