[Accessibility] Fix misspelling in plugins/woocommerce-blocks/docs (#48562)
* Fix "overriden" typo * Fix "prequisites" typo * Fix "overriden" typo * Fix "recieve" typo * Fix "differnt" typo * Fix "revew" typo * Fix "resetted" typo * Fix "overriden" typo * Fix "overriden" typo * Fix "Appearence" typo * Fix "Producto" typo * Fix "tha" and "modifed" typos * Fix "Boundry" typo * Fix "boths" typo * Fix "visibile" typo * Fix "overriden" typo * Fix "Apperance" typo * Fix "returing" typo * Fix "extration" typo * Fix "brough" typo * Fix "teh" typo * Fix "fileds" typo * Fix "arry" typo * Add changelog file * Revert change of "Producto" word * Revert change of "Producto" word
This commit is contained in:
parent
98aebdfcc7
commit
91b6e972e3
|
@ -43,7 +43,7 @@ WooCommerce also comes with two specific [block template parts](https://github.c
|
||||||
- Mini-Cart (`mini-cart.html`): used inside the Mini-Cart block drawer.
|
- Mini-Cart (`mini-cart.html`): used inside the Mini-Cart block drawer.
|
||||||
- Checkout header (`checkout-header.html`): used as the header in the Checkout template.
|
- Checkout header (`checkout-header.html`): used as the header in the Checkout template.
|
||||||
|
|
||||||
Similarly to the templates, they can be overriden by themes by adding a file with the same file name under the `/parts` folder.
|
Similarly to the templates, they can be overridden by themes by adding a file with the same file name under the `/parts` folder.
|
||||||
|
|
||||||
### Global styles
|
### Global styles
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ And these are the styles of the block:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
As you can see, the styles coming from the themes have higher specificity, so our styles would be overriden. In order to solve this:
|
As you can see, the styles coming from the themes have higher specificity, so our styles would be overridden. In order to solve this:
|
||||||
|
|
||||||
1. Never use `!important` rules in CSS to engage in a specificity war with a theme.
|
1. Never use `!important` rules in CSS to engage in a specificity war with a theme.
|
||||||
2. Never use ID selectors.
|
2. Never use ID selectors.
|
||||||
|
|
|
@ -4,7 +4,7 @@ This living document serves as a guide for writing end-to-end (E2E) tests with P
|
||||||
|
|
||||||
## Preparing the environment
|
## Preparing the environment
|
||||||
|
|
||||||
Please refer to [the Getting Started section of the main `README.md`](https://github.com/woocommerce/woocommerce/blob/trunk/README.md) for a general-purpose guide on getting started. The rest of this document will assume that you've installed all of the prequisites and setup described there.
|
Please refer to [the Getting Started section of the main `README.md`](https://github.com/woocommerce/woocommerce/blob/trunk/README.md) for a general-purpose guide on getting started. The rest of this document will assume that you've installed all of the prerequisites and setup described there.
|
||||||
|
|
||||||
Run the following command from the repository root to build the WooCommerce plugin:
|
Run the following command from the repository root to build the WooCommerce plugin:
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ We also have individual features or code blocks behind a feature flag, this is a
|
||||||
- **Deprecated** - `__experimental_woocommerce_blocks_checkout_update_order_from_request` hook gives extensions the chance to update orders based on the data in the request ([deprecated experimental hook](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/d469a45d572f2c52d7917707c492dfb905ddfac0/src/StoreApi/Routes/Checkout.php#L466-L477)). [Deprecated in PR 5015](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5015).
|
- **Deprecated** - `__experimental_woocommerce_blocks_checkout_update_order_from_request` hook gives extensions the chance to update orders based on the data in the request ([deprecated experimental hook](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/d469a45d572f2c52d7917707c492dfb905ddfac0/src/StoreApi/Routes/Checkout.php#L466-L477)). [Deprecated in PR 5015](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5015).
|
||||||
- **Deprecated** - `__experimental_woocommerce_blocks_checkout_order_processed` hook when order has completed processing and is ready for payment ([deprecated experimental hook](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/accd1bbf402e043b9fc322f118ab614ba7437c92/src/StoreApi/Routes/Checkout.php#L237)). [Deprecated in PR 5014](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5014).
|
- **Deprecated** - `__experimental_woocommerce_blocks_checkout_order_processed` hook when order has completed processing and is ready for payment ([deprecated experimental hook](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/accd1bbf402e043b9fc322f118ab614ba7437c92/src/StoreApi/Routes/Checkout.php#L237)). [Deprecated in PR 5014](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5014).
|
||||||
- `__experimental_woocommerce_blocks_add_data_attributes_to_namespace` hook that allows 3PD to add a namespace of blocks to receive block attributes as `data-` attributes ([experimental property](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/4a1ee97eb97011458174e93e44a9b7ad2f10ca36/src/BlockTypesController.php#L88)).
|
- `__experimental_woocommerce_blocks_add_data_attributes_to_namespace` hook that allows 3PD to add a namespace of blocks to receive block attributes as `data-` attributes ([experimental property](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/4a1ee97eb97011458174e93e44a9b7ad2f10ca36/src/BlockTypesController.php#L88)).
|
||||||
- `__experimental_woocommerce_blocks_add_data_attributes_to_block` hook that allows 3PD to add a block to recieve block attributes as `data-` attributes ([experimental property](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/4a1ee97eb97011458174e93e44a9b7ad2f10ca36/src/BlockTypesController.php#L97)).
|
- `__experimental_woocommerce_blocks_add_data_attributes_to_block` hook that allows 3PD to add a block to receive block attributes as `data-` attributes ([experimental property](https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/4a1ee97eb97011458174e93e44a9b7ad2f10ca36/src/BlockTypesController.php#L97)).
|
||||||
|
|
||||||
### JS methods
|
### JS methods
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
|
|
||||||
### Taxes
|
### Taxes
|
||||||
|
|
||||||
1. Setup two differnt tax rates, one for your store base address for 10%, one for a differnt address for 20%.
|
1. Setup two different tax rates, one for your store base address for 10%, one for a different address for 20%.
|
||||||
2. Create a pickup location with an address that matches the 20% tax address.
|
2. Create a pickup location with an address that matches the 20% tax address.
|
||||||
3. Create a pickup location without an address.
|
3. Create a pickup location without an address.
|
||||||
4. On Checkout, select regular shipping, use an address that doesn't match the ones above, you should **not** see a tax line item.
|
4. On Checkout, select regular shipping, use an address that doesn't match the ones above, you should **not** see a tax line item.
|
||||||
|
|
|
@ -122,7 +122,7 @@ Make sure `Single Product` template customizations are reset to the default stat
|
||||||
8. Check the sidebar and ensure the sidebar shows local pickup, and shows the address for the pickup location you have chosen.
|
8. Check the sidebar and ensure the sidebar shows local pickup, and shows the address for the pickup location you have chosen.
|
||||||
9. Change the location and ensure the sidebar updates.
|
9. Change the location and ensure the sidebar updates.
|
||||||
|
|
||||||
### Product Rating: Normalize the height of icons and the add revew link ([8399](https://github.com/woocommerce/woocommerce-blocks/pull/8399))
|
### Product Rating: Normalize the height of icons and the add review link ([8399](https://github.com/woocommerce/woocommerce-blocks/pull/8399))
|
||||||
|
|
||||||
1. Add a new page and the **Products** block.
|
1. Add a new page and the **Products** block.
|
||||||
2. Add the **Product Rating** block.
|
2. Add the **Product Rating** block.
|
||||||
|
|
|
@ -342,6 +342,6 @@ Mini Cart | Cart
|
||||||
4. In the sidebar, set a custom width lower than 300px.
|
4. In the sidebar, set a custom width lower than 300px.
|
||||||
5. Verify when you move the focus somewhere else, it's set to 300px.
|
5. Verify when you move the focus somewhere else, it's set to 300px.
|
||||||
6. Remove the value from the custom width input.
|
6. Remove the value from the custom width input.
|
||||||
7. Verify it gets resetted to the default (480px).
|
7. Verify it gets reset to the default (480px).
|
||||||
8. Try setting an allowed value (ie: 350px, 500px, etc.).
|
8. Try setting an allowed value (ie: 350px, 500px, etc.).
|
||||||
9. Verify the value persists.
|
9. Verify the value persists.
|
||||||
|
|
|
@ -220,7 +220,7 @@ Now, let's test that things keep working if there are two Mini Cart blocks in th
|
||||||
2. Ensure the preview shows nicely per the screenshot above.
|
2. Ensure the preview shows nicely per the screenshot above.
|
||||||
3. After adding the pattern to the page/post, publish/update and view it in the frontend and ensure it displays as what you saw in the preview.
|
3. After adding the pattern to the page/post, publish/update and view it in the frontend and ensure it displays as what you saw in the preview.
|
||||||
|
|
||||||
### Add to Cart with Options block > Restore the global variable to its original value after being overriden [#9581](https://github.com/woocommerce/woocommerce-blocks/pull/9581)
|
### Add to Cart with Options block > Restore the global variable to its original value after being overridden [#9581](https://github.com/woocommerce/woocommerce-blocks/pull/9581)
|
||||||
|
|
||||||
1. While having a block theme enabled such as Twenty-twenty Three, head over to your Dashboard and on the sidebar, click on "Appearance > Editor".
|
1. While having a block theme enabled such as Twenty-twenty Three, head over to your Dashboard and on the sidebar, click on "Appearance > Editor".
|
||||||
2. Select the Single Product template to customize it and click on edit.
|
2. Select the Single Product template to customize it and click on edit.
|
||||||
|
|
|
@ -53,7 +53,7 @@ Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.
|
||||||
2. Visit a product page.
|
2. Visit a product page.
|
||||||
3. Check the body and ensure that the product classes are added
|
3. Check the body and ensure that the product classes are added
|
||||||
|
|
||||||
### Add to Cart with Options block: Restore the global variable to its original value after being overriden [#9581](https://github.com/woocommerce/woocommerce-blocks/pull/9581)
|
### Add to Cart with Options block: Restore the global variable to its original value after being overridden [#9581](https://github.com/woocommerce/woocommerce-blocks/pull/9581)
|
||||||
|
|
||||||
1. While having a block theme enabled such as Twenty-twenty Three, head over to your Dashboard and on the sidebar, click on "Appearance > Editor".
|
1. While having a block theme enabled such as Twenty-twenty Three, head over to your Dashboard and on the sidebar, click on "Appearance > Editor".
|
||||||
2. Select the Single Product template to customize it and click on edit.
|
2. Select the Single Product template to customize it and click on edit.
|
||||||
|
|
|
@ -11,7 +11,7 @@ Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.
|
||||||
3. Create a new post
|
3. Create a new post
|
||||||
4. Insert the navigation block
|
4. Insert the navigation block
|
||||||
5. Make sure you can correctly preview it without any problems, as demonstrated in the screenshot in the description of this PR.
|
5. Make sure you can correctly preview it without any problems, as demonstrated in the screenshot in the description of this PR.
|
||||||
6. Now head over to Appearence > Editor > Templates > Product Catalog and edit it.
|
6. Now head over to Appearance > Editor > Templates > Product Catalog and edit it.
|
||||||
7. If you are seeing the "WooCommerce Product Grid Block", click on "Transform into blocks":
|
7. If you are seeing the "WooCommerce Product Grid Block", click on "Transform into blocks":
|
||||||
|
|
||||||
<img width="1218" alt="Screenshot 2023-07-27 at 18 56 37" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/fb5621ae-af06-47f5-95d5-3bba7f7d648c">
|
<img width="1218" alt="Screenshot 2023-07-27 at 18 56 37" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/fb5621ae-af06-47f5-95d5-3bba7f7d648c">
|
||||||
|
|
|
@ -21,7 +21,7 @@ These actions only appear when the feature flag is on for the install. If you ar
|
||||||
woocommerce_blocks_phase = 1
|
woocommerce_blocks_phase = 1
|
||||||
```
|
```
|
||||||
|
|
||||||
(remember to remove tha file after testing!)
|
(remember to remove the file after testing!)
|
||||||
|
|
||||||
## When distributed as the feature plugin
|
## When distributed as the feature plugin
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ Expected behaviour is:
|
||||||
- [ ] `woocommerce_cleanup_draft_orders` action **should** appear in the scheduled tasks for Action Scheduler (Tools->Scheduled Actions).
|
- [ ] `woocommerce_cleanup_draft_orders` action **should** appear in the scheduled tasks for Action Scheduler (Tools->Scheduled Actions).
|
||||||
- [ ] Create a draft order (on the frontend load the checkout block with products in the cart and do not complete the order).
|
- [ ] Create a draft order (on the frontend load the checkout block with products in the cart and do not complete the order).
|
||||||
- [ ] Trigger the scheduled action for `woocommerce_cleanup_draft_orders` and verify the just created draft order and none of the other orders on your test site have been deleted.
|
- [ ] Trigger the scheduled action for `woocommerce_cleanup_draft_orders` and verify the just created draft order and none of the other orders on your test site have been deleted.
|
||||||
- [ ] Modify the draft order date so that it's greater than 24 hours in the past from now (you need to modify the `post_modifed_gmt` field)
|
- [ ] Modify the draft order date so that it's greater than 24 hours in the past from now (you need to modify the `post_modified_gmt` field)
|
||||||
- [ ] Trigger the scheduled action again, this time the draft order you modified (and only that draft order) should be deleted.
|
- [ ] Trigger the scheduled action again, this time the draft order you modified (and only that draft order) should be deleted.
|
||||||
|
|
||||||
There are PHPUnit tests covering behaviour as well (including catching errors).
|
There are PHPUnit tests covering behaviour as well (including catching errors).
|
||||||
|
|
|
@ -61,7 +61,7 @@ This test requires the browser dev tools to inspect rendered HTML.
|
||||||
4. Make sure it has role="img" & aria-label="Rated X out of 5"
|
4. Make sure it has role="img" & aria-label="Rated X out of 5"
|
||||||
5. Check that the child span has the same text content as the aria-label attribute
|
5. Check that the child span has the same text content as the aria-label attribute
|
||||||
|
|
||||||
### Set correct text color in BlockErrorBoundry notices. #3738
|
### Set correct text color in BlockErrorBoundary notices. #3738
|
||||||
|
|
||||||
This test requires a code edit to force an error.
|
This test requires a code edit to force an error.
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ tags: reference, checkout-hooks
|
||||||
|
|
||||||
# Migrated Legacy Hooks
|
# Migrated Legacy Hooks
|
||||||
|
|
||||||
Below are the hooks that exist in WooCommerce core and that were brough over to WooCommerce Blocks.
|
Below are the hooks that exist in WooCommerce core and that were brought over to WooCommerce Blocks.
|
||||||
|
|
||||||
Please note that the actions and filters here run on the server side. The client-side blocks won't necessarily change based on a callback added to a server side hook. [Please see our documentation relating to APIs for manipulating the blocks on the client-side](../README.md).
|
Please note that the actions and filters here run on the server side. The client-side blocks won't necessarily change based on a callback added to a server side hook. [Please see our documentation relating to APIs for manipulating the blocks on the client-side](../README.md).
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: tweak
|
||||||
|
|
||||||
|
Fix typos in plugins/woocommerce-blocks/docs
|
Loading…
Reference in New Issue