Skip to content

Commit

Permalink
Fix: Font size picker does not work on mobile (#13257)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored Jan 11, 2019
1 parent 162b4bd commit 7f3b8c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/stylesheets/_z-index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ $z-layers: (

// Shows above edit post sidebar; Specificity needs to be higher than 3 classes.
".block-editor__container .components-popover.components-color-palette__picker.is-bottom": 100001,
".block-editor__container .components-popover.components-font-size-picker__dropdown-content.is-bottom": 100001,
".edit-post-post-visibility__dialog.components-popover.is-bottom": 100001,

".components-autocomplete__results": 1000000,
Expand Down
3 changes: 3 additions & 0 deletions packages/editor/src/components/font-sizes/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.block-editor__container .components-popover.components-font-size-picker__dropdown-content.is-bottom {
z-index: z-index(".block-editor__container .components-popover.components-font-size-picker__dropdown-content.is-bottom");
}
1 change: 1 addition & 0 deletions packages/editor/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@import "./components/default-block-appender/style.scss";
@import "./components/document-outline/style.scss";
@import "./components/error-boundary/style.scss";
@import "./components/font-sizes/style.scss";
@import "./components/inner-blocks/style.scss";
@import "./components/inserter-with-shortcuts/style.scss";
@import "./components/inserter/style.scss";
Expand Down

0 comments on commit 7f3b8c7

Please sign in to comment.