Skip to content

Conversation

@joshuatf
Copy link
Contributor

Submission Review Guidelines:

Changes proposed in this Pull Request:

Removes the errant toolbar border pixel that is shown when focusing blocks.

Note that there is still an issue upstream that needs to be fixed, but this works well for our current use case where we only need contextual toolbars.

Before

Screen Shot 2023-04-20 at 12 12 30 PM

After

Screen Shot 2023-04-20 at 3 55 17 PM

Closes #37897 .

How to test the changes in this Pull Request:

Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:

  1. Navigate to Tools -> WCA Test Helper -> Features and enable the new product blocks editing experience
  2. Navigate to Products -> Add new
  3. Select each block or focus its input
  4. Make sure that the single pixel above (where the toolbar would normally be) is not shown

@joshuatf joshuatf requested a review from a team April 20, 2023 22:59
@joshuatf joshuatf self-assigned this Apr 20, 2023
@github-actions
Copy link
Contributor

Hi , @woocommerce/mothra

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

@github-actions
Copy link
Contributor

Test Results Summary

Commit SHA: 411c4c4

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests26700202691m 9s
E2E Tests1870010019713m 41s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

@codecov
Copy link

codecov bot commented Apr 20, 2023

Codecov Report

Merging #37912 (411c4c4) into trunk (c5285ec) will increase coverage by 0.0%.
The diff coverage is 55.6%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##             trunk   #37912   +/-   ##
========================================
  Coverage     51.5%    51.5%           
- Complexity   17283    17288    +5     
========================================
  Files          430      430           
  Lines        80037    80054   +17     
========================================
+ Hits         41216    41231   +15     
- Misses       38821    38823    +2     
Impacted Files Coverage Δ
.../woocommerce/includes/admin/wc-admin-functions.php 41.3% <0.0%> (-0.2%) ⬇️
.../woocommerce/includes/class-wc-structured-data.php 0.0% <0.0%> (ø)
...ins/woocommerce/includes/wc-template-functions.php 12.3% <66.7%> (+0.1%) ⬆️
...ers/Version3/class-wc-rest-products-controller.php 85.4% <69.6%> (-0.4%) ⬇️
...ion2/class-wc-rest-order-refunds-v2-controller.php 89.7% <100.0%> (ø)
plugins/woocommerce/includes/wc-core-functions.php 63.6% <100.0%> (ø)

... and 1 file with indirect coverage changes

Copy link
Contributor

@mdperez86 mdperez86 left a comment

Choose a reason for hiding this comment

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

Nice job here @joshuatf we don't have that noisy dot anymore.

@joshuatf joshuatf merged commit 1cc5d0d into trunk Apr 21, 2023
@joshuatf joshuatf deleted the fix/37897 branch April 21, 2023 16:51
@github-actions github-actions bot added this to the 7.8.0 milestone Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hide product block toolbars in various blocks

3 participants