Skip to content

Commit

Permalink
Most used tags: Try fixing label (#44859)
Browse files Browse the repository at this point in the history
* Most used tags: Tweak label font weight

* Fix for post-publish.

* Use component to get label styles

* Revert "Fix for post-publish."

This reverts commit 3f4f335.

Co-authored-by: Lena Morita <[email protected]>
  • Loading branch information
jasmussen and mirka authored Oct 17, 2022
1 parent 6bc1ec5 commit e6eae66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { get } from 'lodash';
/**
* WordPress dependencies
*/
import { Button } from '@wordpress/components';
import { BaseControl, Button } from '@wordpress/components';
import { useSelect } from '@wordpress/data';
import { store as coreStore } from '@wordpress/core-data';

Expand Down Expand Up @@ -47,9 +47,12 @@ export default function MostUsedTerms( { onSelect, taxonomy } ) {

return (
<div className="editor-post-taxonomies__flat-term-most-used">
<h3 className="editor-post-taxonomies__flat-term-most-used-label">
<BaseControl.VisualLabel
as="h3"
className="editor-post-taxonomies__flat-term-most-used-label"
>
{ label }
</h3>
</BaseControl.VisualLabel>
{ /*
* Disable reason: The `list` ARIA role is redundant but
* Safari+VoiceOver won't announce the list otherwise.
Expand Down
3 changes: 1 addition & 2 deletions packages/editor/src/components/post-taxonomies/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@

.editor-post-taxonomies__flat-term-most-used {
.editor-post-taxonomies__flat-term-most-used-label {
font-weight: 400;
margin-bottom: $grid-unit-15;
margin-bottom: $grid-unit-05;
}
}

Expand Down

0 comments on commit e6eae66

Please sign in to comment.