Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks: Restore freeform block toolbar z-index #3265

Merged
merged 2 commits into from
Oct 31, 2017

Conversation

aduth
Copy link
Member

@aduth aduth commented Oct 31, 2017

This pull request seeks to resolve an issue where the freeform block floating toolbar could not be clicked when overlapping content. The freeform block toolbar inherited z-index from the block toolbar which was removed as part of #2998. It is unclear whether the freeform block toolbar should be moved to the header as well, but in the interim this resolves the layering issues. Further, it introduces a change to surface z-index function unmatched references by failing the build when attempting to use a key which is not defined.

Testing instructions:

  1. Create a post in the Classic Editor with enough content to cause scroll when viewed in Gutenberg
  2. Edit the post created in step 1 in Gutenberg
  3. Select within the freeform content block
  4. Scroll the page until the freeform toolbar sticky positioning takes effect
  5. Note that you can still interact with the toolbar and it is shown above content

Verify that there are no errors in Gutenberg build.

@aduth aduth added the [Feature] Blocks Overall functionality of blocks label Oct 31, 2017
@return map-get( $z-layers, $key );
}

@error "Error: Specified z-index `#{$key}` does not exist in the mapping";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 👍

Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix, The unit tests are failing (waiting for 4.8.3 to be tagged). I guess we can merge regardless.

@aduth aduth merged commit 81328e1 into master Oct 31, 2017
@aduth aduth deleted the fix/freeform-toolbar-z-index branch October 31, 2017 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants