Skip to content

Commit

Permalink
Add block library common style, fix inserter colors. Fixes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jul 21, 2024
1 parent 8f35544 commit f3326e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
color: var(--wp-components-color-foreground-inverted);
}

.components-button.block-editor-block-types-list__item,
.block-editor-block-types-list__item-icon {
color: var(--wp-components-color-foreground);
}

html,
body {
padding: 0;
Expand Down Expand Up @@ -117,7 +122,7 @@ body,
.dataviews-view-list__item {
padding: 10px 7px;
border-radius: 2px;
font-size: 14px;
font-size: 15px;
cursor: pointer;
}

Expand Down
2 changes: 2 additions & 0 deletions src/editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import light from './light.css?raw';
import dark from './dark.css?raw';

import blockEditorContentStyle from '@wordpress/block-editor/build-style/content.css?raw';
import blockLibraryCommonStyle from '@wordpress/block-library/build-style/common.css?raw';
// eslint-disable-next-line import/no-unresolved
import blockLibraryContentStyle from './block-types/auto-generated-content.css?raw';
import componentsStyle from '@wordpress/components/build-style/style.css?raw';
Expand All @@ -28,6 +29,7 @@ import contentStyle from './content.css?raw';
const contentStyles = [
componentsStyle,
blockLibraryContentStyle,
blockLibraryCommonStyle,
blockEditorContentStyle,
light,
dark,
Expand Down

0 comments on commit f3326e6

Please sign in to comment.