Skip to content

Commit

Permalink
Added fix for SelectControl Gutenberg bug
Browse files Browse the repository at this point in the history
Temporary fix for Gutenberg bug on multiple SelectControl height and down-arrow in InspectorControls. Details on this bug: WordPress/gutenberg#27166
  • Loading branch information
kevinbazira committed Nov 5, 2021
1 parent b2c0288 commit 9c1e461
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/blocks.editor.build.css

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

11 changes: 11 additions & 0 deletions src/block/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,15 @@

.wp-block-algori-social-share-buttons-block-algori-social-share-buttons {
width: 100%;
}

/*Fix height on multiple SelectControl - temp fix for Gutenberg bug: https://github.com/WordPress/gutenberg/issues/27166
Also, used !important because https://github.com/WordPress/gutenberg/issues/20127 and attribute selectors have very low specificity*/
.algori-social-share-buttons-multiple-selectcontrol > div > select[id^="inspector-select-control-"] {
height: auto !important;
}

/*Hide DownArrow on multiple SelectControl - temp fix for Gutenberg bug: https://github.com/WordPress/gutenberg/issues/27166 */
.algori-social-share-buttons-multiple-selectcontrol > div > span.components-input-control__suffix {
display: none;
}

0 comments on commit 9c1e461

Please sign in to comment.