Skip to content

Commit

Permalink
update panel item styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Aug 2, 2022
1 parent 2b228c4 commit fa8cffd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default function QueryInspectorControls( {
{ ! inherit && (
<InspectorControls>
<ToolsPanel
className={ `block-support-panel` }
className="block-library-query-toolspanel__filters"
label={ __( 'Filters' ) }
resetAll={ () => {
setQuery( {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@ export function TaxonomyControls( { onChange, query } ) {
return null;
}
return (
<FormTokenField
<div
key={ slug }
label={ name }
value={ getExistingTaxQueryValue( slug ) }
suggestions={ terms.names }
onChange={ onTermsChange( slug ) }
/>
className="block-library-query-inspector__taxonomy-control"
>
<FormTokenField
label={ name }
value={ getExistingTaxQueryValue( slug ) }
suggestions={ terms.names }
onChange={ onTermsChange( slug ) }
/>
</div>
);
} ) }
</>
Expand Down
9 changes: 9 additions & 0 deletions packages/block-library/src/query/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@
max-height: none;
}
}

.block-library-query-toolspanel__filters {
.components-form-token-field__help {
margin-bottom: 0;
}
.block-library-query-inspector__taxonomy-control:not(:last-child) {
margin-bottom: calc(4px * 6);
}
}

0 comments on commit fa8cffd

Please sign in to comment.