From cdbf852b430a82b52b392489db4b1a7bc88d3c89 Mon Sep 17 00:00:00 2001 From: Tom Arbesser-Rastburg Date: Tue, 30 Dec 2025 13:07:03 +1100 Subject: [PATCH] DEVDOCS-6658 Various fixes in Stencil docs --- docs/storefront/stencil/cli/install.mdx | 2 +- .../stencil/cli/unexpected-behavior.mdx | 12 +++---- .../deployment/performance-optimization.mdx | 20 +++++------ .../stencil/deployment/theme-images.mdx | 2 +- .../stencil/deployment/upload-errors.mdx | 6 ++-- .../draft/dynamic-content-rendering.mdx | 26 +++++++------- .../global-objects-and-properties.mdx | 20 +++++------ .../other-objects-and-properties-overview.mdx | 8 ++--- .../stencil/draft/store-design-overview.mdx | 6 ++-- docs/storefront/stencil/start/tech-stack.mdx | 2 +- .../implementing-wcag-guidelines.mdx | 2 +- .../stencil/themes/accessibility/index.mdx | 20 +++++------ .../stored-payment-methods.mdx | 10 +++--- .../context/object-reference/config.yml | 6 ++-- .../helpers/cart/cartItems.yml | 2 +- .../helpers/common/product.yml | 2 +- .../object-reference/helpers/forms/login.yml | 4 +-- .../object-reference/schemas/banners.yml | 4 +-- .../context/object-reference/schemas/blog.yml | 2 +- .../object-reference/schemas/breadcrumbs.yml | 2 +- .../context/object-reference/schemas/cart.yml | 10 +++--- .../object-reference/schemas/comparisons.yml | 2 +- .../object-reference/schemas/countries.yml | 8 ++--- .../object-reference/schemas/customer.yml | 36 +++++++++---------- .../context/object-reference/schemas/head.yml | 4 +-- .../object-reference/schemas/order.yml | 30 ++++++++-------- .../stencil/themes/foundations/react.mdx | 6 ++-- .../stencil/themes/style/fonts-and-icons.mdx | 10 +++--- .../stencil/themes/templates/index.mdx | 18 +++++----- docs/storefront/stencil/utils/events.mdx | 4 +-- 30 files changed, 143 insertions(+), 143 deletions(-) diff --git a/docs/storefront/stencil/cli/install.mdx b/docs/storefront/stencil/cli/install.mdx index d192d8000..7095330bb 100644 --- a/docs/storefront/stencil/cli/install.mdx +++ b/docs/storefront/stencil/cli/install.mdx @@ -22,7 +22,7 @@ There are different options for installing Stencil CLI and its dependencies on a * Node.js 20+ (Stencil CLI supported version) Note: If the Python version is more than 3.12, then you should install distutils using the following command: - ```pip install setuptools``` + `pip install setuptools` To install Stencil CLI and its dependencies on Mac, open a terminal and run the following commands. For the latest `node` version supported, refer to [Stencil CLI README.MD](https://github.com/bigcommerce/stencil-cli). diff --git a/docs/storefront/stencil/cli/unexpected-behavior.mdx b/docs/storefront/stencil/cli/unexpected-behavior.mdx index 7236fe9e3..f06677ecd 100644 --- a/docs/storefront/stencil/cli/unexpected-behavior.mdx +++ b/docs/storefront/stencil/cli/unexpected-behavior.mdx @@ -29,7 +29,7 @@ stencil scss-autofix --dry 3. To commit the changes and revalidate, run the following commands: ```shell showLineNumbers copy -stencil scss-autofix +stencil scss-autofix stencil bundle ``` @@ -58,7 +58,7 @@ Debug: internal, implementation, error (/usr/local/lib/node_modules/stencil-cli/server/plugins/CssCompiler/index.js:32:26) ``` -On MacOS, we have tested Stencil CLI most robustly on Node.js version 4.4.0. On Linux, we have tested most robustly on version 4.1.2. On Windows, we have tested most robustly on version 4.6.1. You’ll find detailed steps (for each operating system) in these instructions' Installing Stencil Prerequisites by OS section. +On macOS, we have tested Stencil CLI most robustly on Node.js version 4.4.0. On Linux, we have tested most robustly on version 4.1.2. On Windows, we have tested most robustly on version 4.6.1. You’ll find detailed steps (for each operating system) in these instructions' Installing Stencil Prerequisites by OS section. ## npm install errors @@ -126,7 +126,7 @@ This error typically occurs when your `package.json` file includes an outdated v ### Running stencil bundle errors -Nowadays, `stencil bundle` runs several validation checks on a theme before it can be bundled and pushed to the store. +Nowadays, `stencil bundle` runs several validation checks on a theme before it can be bundled and pushed to the store. You may see those errors because your theme has some missing properties in its translations files or frontmatter that have recently become required. @@ -155,7 +155,7 @@ The following error indicates that there is a trailing comma in the frontmatter Error: Found unallowed trailing symbol in: "4,", while parsing frontmatter at ".....templates/pages/home.html". ``` -### Node support +### Node support When you update the Node.js version, you can check to see whether you can update other theme packages, such as webpack, for updated feature support. @@ -197,7 +197,7 @@ If you receive the same error again after running `npm install`, you should comp ## MacOS: Xcode/iOS license... errors -On MacOS, if you have recently installed a new version of Xcode, the command line will display the following error when you next try to use or reinstall Stencil: +On macOS, if you have recently installed a new version of Xcode, the command line will display the following error when you next try to use or reinstall Stencil: ```text error: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. @@ -249,7 +249,7 @@ If executing the `stencil start` command generates an `Unauthorized, please use ### 403 errors -If the Stencil server responds with a `403` error and you are using a proxy-based domain service like Cloudflare or Amazon Cloudfront, modify your hosts file to map the localhost to your BigCommerce store IP address. +If the Stencil server responds with a `403` error, and you are using a proxy-based domain service like Cloudflare or Amazon CloudFront, modify your hosts file to map the localhost to your BigCommerce store IP address. ## 500 errors diff --git a/docs/storefront/stencil/deployment/performance-optimization.mdx b/docs/storefront/stencil/deployment/performance-optimization.mdx index 9886abb84..8fa78a176 100644 --- a/docs/storefront/stencil/deployment/performance-optimization.mdx +++ b/docs/storefront/stencil/deployment/performance-optimization.mdx @@ -27,9 +27,9 @@ When importing images, ensure your images are high quality, the appropriate dime Injecting JavaScript context variables allow you to access store data through your theme. You can inject JavaScript context variables using the `{{inject}}` Handlebars helper. Be sure to assign a custom variable name to the injected variable. -You can then use the `{{jsContext}}` Handlebars helper to access a stringified JSON object containing all injected data with your assigned custom variable names as keys in the key-value pairs. For more information, see [injection helpers](/docs/storefront/stencil/themes/context/handlebars-reference#inject). +You can then use the `{{jsContext}}` Handlebars helper to access a stringified JSON object containing all injected data with your assigned custom variable names as keys in the key-value pairs. For more information, see [injection helpers](/docs/storefront/stencil/themes/context/handlebars-reference#inject). -The code example below uses `{{inject}}` and `{{jsContext}}` to log the product name to your browser's console when added to Cornerstone's `product.html` file: +The code example below uses `{{inject}}` and `{{jsContext}}` to log the product name to your browser's console when added to Cornerstone's `product.html` file: ```handlebars filename="product.html" showLineNumbers copy {{inject "myProductName" product.title}} @@ -43,7 +43,7 @@ The code example below uses `{{inject}}` and `{{jsContext}}` to log the product ``` -We recommend injecting only the variables you need. If you inject all settings, you could accidentlly inject PII (Personally-Identifying Information) and cause performance issues with your site. +We recommend injecting only the variables you need. If you inject all settings, you could accidentally inject PII (Personally-Identifying Information) and cause performance issues with your site. ## Using Lighthouse @@ -59,7 +59,7 @@ Largest Contentful Paint (LCP) is the metric that reports the time it takes to d #### Good score - The optimal LCP score is 2.5 seconds or faster. + The optimal LCP score is 2.5 seconds or faster. To improve LCP: @@ -93,7 +93,7 @@ Cumulative Layout Shift (CLS) is the metric that measures visual stability. This #### Good score - The optimal CLS score is 0.1 seconds or less. + The optimal CLS score is 0.1 seconds or less. To improve CLS: @@ -108,7 +108,7 @@ In this example, the performance score is currently 47. The LCP score is 6.2 s, ![Performance Metrics](https://raw.githubusercontent.com/bigcommerce/dev-docs/master/assets/images/performance-example-1.png "Performance Metrics") -To improve performance, let's start by measuring usused JavaScript. In Chrome DevTools, the **Lighthouse** and **Coverage** tabs offer suggestions of unused JavaScript code that you can potentially remove. The red section of the bar represents unused bytes; the green section represents used bytes. It is important to note that unused JavaScript means your page has not used it yet. The JavaScript in red might be connected to event listeners that only fire when a user interacts with your page. +To improve performance, let's start by measuring unused JavaScript. In Chrome DevTools, the **Lighthouse** and **Coverage** tabs offer suggestions of unused JavaScript code that you can potentially remove. The red section of the bar represents unused bytes; the green section represents used bytes. It is important to note that unused JavaScript means your page has not used it yet. The JavaScript in red might be connected to event listeners that only fire when a user interacts with your page. ![Coverage tab](https://raw.githubusercontent.com/bigcommerce/dev-docs/master/assets/images/performance-example-2.png "Coverage tab") @@ -117,7 +117,7 @@ In addition to removing unused code, you can minify, compress, and refactor CSS ```css filename="Example, Part 1: Not minified" showLineNumbers copy .element-class { padding: 1px 5px 1px 5px; -font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, +font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif; background-color: #eeeeee;} ``` @@ -128,14 +128,14 @@ background-color: #eeeeee;} Lighthouse displays information relevant to elements contributing to the CLS score. In this example, the banner above the carousel causes a loading issue. Once the image is resized or removed the CLS score improves. -After removing some unused bytes, minifying JavaScript files, and resizing an image, the performance score is 77. The LCP score is now 4.3 s, the TBT score is 120 ms and the CLS score is 0.001. You can continue to remove additional unused bytes to improve your performance score and metrics. +After removing some unused bytes, minifying JavaScript files, and resizing an image, the performance score is 77. The LCP score is now 4.3 s, the TBT score is 120 ms and the CLS score is 0.001. You can continue to remove additional unused bytes to improve your performance score and metrics. ![Improved Performance Metrics](https://raw.githubusercontent.com/bigcommerce/dev-docs/master/assets/images/performance-example-3.png "Improved Performance Metrics") -Using Lighthouse is an important step in optimizing your site and improving the user experience. It is an easy to use best practice tip that provides powerful insights. +Using Lighthouse is an important step in optimizing your site and improving the user experience. It is an easy to use best practice tip that provides powerful insights. ## Using error detections and optimization tools -Tools that automatically record errors and provide session playback and optimization suggestions often benefit from having access to the themes' source maps in production. +Tools that automatically record errors and provide session playback and optimization suggestions often benefit from having access to the themes' source maps in production. They provide a way to translate between minified code, designed to decrease webpage load times and the source code the developer writes. [Stencil CLI](/docs/storefront/stencil/cli/options-and-commands) provides convenient options for bundling the production-ready theme with source maps included. diff --git a/docs/storefront/stencil/deployment/theme-images.mdx b/docs/storefront/stencil/deployment/theme-images.mdx index 67eaac6cb..d2006dc7f 100644 --- a/docs/storefront/stencil/deployment/theme-images.mdx +++ b/docs/storefront/stencil/deployment/theme-images.mdx @@ -5,7 +5,7 @@ ## Displaying theme thumbnail images -A complete Stencil theme includes screenshots to display the theme on cards that appear in two locations within a non active MSF BigCommerce control panel: +A complete Stencil theme includes screenshots to display the theme on cards that appear in two locations within a non-active MSF BigCommerce control panel: * **Storefront** › **Themes**: Each individual card displays a composite which is an image that contains combination of screenshots of the theme's multiple variations. diff --git a/docs/storefront/stencil/deployment/upload-errors.mdx b/docs/storefront/stencil/deployment/upload-errors.mdx index 0cfda4c4a..8ce5b95b9 100644 --- a/docs/storefront/stencil/deployment/upload-errors.mdx +++ b/docs/storefront/stencil/deployment/upload-errors.mdx @@ -1,6 +1,6 @@ # Troubleshooting Theme Uploads - + ## Restrictions @@ -27,7 +27,7 @@ Custom theme uploads must meet these restrictions: | TR-800 | There was a problem processing the contained `config.json` file. Please check the `config.json` documentation for the required keys and for keys that require values. | | TR-900 | The contained `config.json` file is missing the required developer information. | | TR-901 | A theme variation defined in the contained config.json file is missing its required external ID. | -| TR-902 | Two or more theme variations defined in the contained config.json file share an external ID. All external IDs must be unique. | +| TR-902 | Two or more theme variations defined in the contained config.json file share an external ID. All external IDs must be unique. | | TR-1000 | There was a problem processing the contained schema.json file. | | TR-1001 | The theme is missing its required schema.json file. | | TR-1400 | There was a problem processing template front matter. | @@ -63,6 +63,6 @@ Warnings will not block a theme's upload, but these onscreen and/or log messages ## Workarounds and further info * When using a Windows machine, it is necessary to close PowerShell and re-open as admin before installing nvm. -* If a custom theme does not render properly after you upload and apply it to a storefront, make sure you have created the theme's zip file using the `stencil bundle` command, on a Mac OS, Linux computer, or virtual machine. Using the `stencil bundle` command will exclude Windows-specific errors that have occurred on some bundles. +* If a custom theme does not render properly after you upload and apply it to a storefront, make sure you have created the theme's zip file using the `stencil bundle` command, on a macOS, Linux computer, or virtual machine. Using the `stencil bundle` command will exclude Windows-specific errors that have occurred on some bundles. * If you repeatedly encounter the same error or warning and neither this page nor our KB resolves the problem, see support resources for theme developers in our [Developer Community](/community). diff --git a/docs/storefront/stencil/draft/dynamic-content-rendering.mdx b/docs/storefront/stencil/draft/dynamic-content-rendering.mdx index 6953b4868..923ca9996 100644 --- a/docs/storefront/stencil/draft/dynamic-content-rendering.mdx +++ b/docs/storefront/stencil/draft/dynamic-content-rendering.mdx @@ -1,6 +1,6 @@ --- title: Dynamic Content Rendering on Stencil Storefronts -keywords: js, javascript, if, +keywords: js, javascript, if, --- # Dynamic Content Rendering on Stencil Storefronts @@ -11,7 +11,7 @@ _We're gratefully sharing techniques devised by Ken Utting, Web Developer for Bi At GORUCK, we've customized our Stencil theme (currently using the [Merchant](https://www.bigcommerce.com/theme/merchant-light/?_ga=2.52710120.1984523106.1539568940-967431010.1523308107) theme) to provide several ways to update our site content without requiring changes to the theme itself. This allows our content folks to make changes to our theme without having to wait on our software developers. -Also, by pushing content out of the theme, these techniques reduce the differences between our customized theme and the out-of-the-box (base) theme – which makes it easier to integrate ongoing updates into our theme. Finally, these techniques allow us share identical content across pages without copying and pasting. +Also, by pushing content out of the theme, these techniques reduce the differences between our customized theme and the out-of-the-box (base) theme – which makes it easier to integrate ongoing updates into our theme. Finally, these techniques allow us to share identical content across pages without copying and pasting. Three techniques in particular have proven useful to us. We call them Dropzones, Dynamic Tabs, and Snippets. There is nothing particularly special to GORUCK about these techniques, so there is no reason you can't adopt them for your own store/theme. @@ -104,8 +104,8 @@ In the example below, we use this technique to place the `RIGHT BY YOU` tab in t There are two versions of the HTML. The first is designed for a tab you want to drop in using a page's own HTML: ```handlebars showLineNumbers copy -
- CONTENT +
+ CONTENT
``` @@ -119,7 +119,7 @@ The second version is designed for a tab that gets its content from an external In this second case, the HTML in that external file must start with the POSITION and TITLE information: ```handlebars showLineNumbers copy - + CONTENT ``` @@ -153,37 +153,37 @@ Here are the contents of our `dynamicTab1.html` file:
-

Free & Easy Returns

-

Don't like it? Send it back for free. Returnable in like-new condition within 30 days and +

Don't like it? Send it back for free. Returnable in like-new condition within 30 days and every order comes with a free return shipping label. Too easy.

-

Challenge Excellence

-

We have two grades, A and F and A- rounds down. Excellence is the standard and please hold us to it, +

We have two grades, A and F and A- rounds down. Excellence is the standard and please hold us to it, we want you to love your gear as much as we do.

-

Do Right By People

-

Our goal is to run a company our grandfathers would be proud of. And the central tenet +

Our goal is to run a company our grandfathers would be proud of. And the central tenet — an oldie but a goodie — is that we do whatever it takes to do right by people. Contact us at team@goruck.com with any questions and we'll get back to you ASAP.

@@ -193,7 +193,7 @@ Here are the contents of our `dynamicTab1.html` file:
``` -### Dynamic Tabs JavaScript +### Dynamic Tabs JavaScript Again, the JavaScript code to implement Dynamic Tabs is invoked in the PageManager class' before method. The Dynamic Tabs code is more complex, and it relies on other classes we wrote to get content from the external server and cache it in the browser. @@ -225,7 +225,7 @@ The external file can contain any arbitrary HTML and CSS, and the styled HTML is Like Dropzones and Dynamic Tabs, the Snippets code is invoked in `PageManager`'s `before` method. Snippets adds just another 50 lines of JavaScript code to the theme, also relying on the same code that Dynamic Tabs uses to get the external file and cache it in the browser. -## Recap +## Recap At GORUCK, we've developed a number of techniques that allow us to separate our content from our theme. These techniques have proved valuable to us, because they allow us to: diff --git a/docs/storefront/stencil/draft/reference-docs/global-objects-and-properties.mdx b/docs/storefront/stencil/draft/reference-docs/global-objects-and-properties.mdx index 844e9b8e1..34757675d 100644 --- a/docs/storefront/stencil/draft/reference-docs/global-objects-and-properties.mdx +++ b/docs/storefront/stencil/draft/reference-docs/global-objects-and-properties.mdx @@ -1,6 +1,6 @@ --- title: Global Objects and Properties -keywords: stencil, currency, currencies, sort, +keywords: stencil, currency, currencies, sort, --- # Global Objects and Properties @@ -10,7 +10,7 @@ Global objects and properties are common components shared across the entire Big #### Debugging Your Theme The Stencil framework provides built-in debugging tools to aid in your custom front-end development. When you want to see what data is available on the page you are working on, you can simply add the debug query string to your store’s localhost URL. For example: - `http://localhost:3000/product/this-is-a-sample-product?debug=context` will return a list of all the objects available on the page, in JSON syntax. + `http://localhost:3000/product/this-is-a-sample-product?debug=context` will return a list of all the objects available on the page, in JSON syntax. If you want to view the available JSON objects and rendered page at the same time, simply change the debug value to "bar": `http://localhost:3000/product/this-is-a-sample-product?debug=bar` @@ -66,11 +66,11 @@ Global objects and properties are common components shared across the entire Big | `text` | Subheading defined by the merchant. | | `text_color` | Color of the subheading text. | | `button_text` | Text displayed on a call-to-action button defined by the merchant. | -| `button_text_color` | Color of the button. | +| `button_text_color` | Color of the button. | ## Cart -**Description:** Returns the ID of the cart if one exists. To return more cart information use the [Storefront Cart API](/docs/rest-storefront/carts). +**Description:** Returns the ID of the cart if one exists. To return more cart information use the [Storefront Cart API](/docs/rest-storefront/carts). **Handlebars Expression:** `{{cart_id}}` @@ -99,8 +99,8 @@ Global objects and properties are common components shared across the entire Big | `switch_url` | The URL to invoke a switch to this currency. | | `id` | ID of the currency. | | `name` | Name of the currency. | -| `flag` | Country flag used to visually represent the currency. | - +| `flag` | Country flag used to visually represent the currency. | + ## Categories @@ -188,7 +188,7 @@ The `homepage_featured_products_count` limit is one of two relevant variables de "homepage_featured_products_count": 8, // ... "homepage_featured_products_column_count": 4, - // ... + // ... } ``` @@ -253,7 +253,7 @@ No properties available for this object. To access the global `{{products.new}}` object on your page, you must first use front matter to declare the object at the top of your page template. -`{{products.new}}` returns 10 products by default. +`{{products.new}}` returns 10 products by default. The code example below declares the global `{{products.new}}` object on the `cornerstone/templates/pages/home.html` page template from [Stencil's base Cornerstone Theme](https://github.com/bigcommerce/cornerstone/blob/master/templates/pages/home.html#L3) (GitHub). @@ -629,13 +629,13 @@ products: top_sellers: ``` -## Urls +## URLs **Description:** Object containing a collection of storefront pages and their sub-pages
**Handlebars Expression:** `{{urls}}` -**Object Properties:** +**Object Properties:** | Property | Description | | :--- | :--- | diff --git a/docs/storefront/stencil/draft/reference-docs/other-objects-and-properties-overview.mdx b/docs/storefront/stencil/draft/reference-docs/other-objects-and-properties-overview.mdx index 3a201788b..c4ec2ab84 100644 --- a/docs/storefront/stencil/draft/reference-docs/other-objects-and-properties-overview.mdx +++ b/docs/storefront/stencil/draft/reference-docs/other-objects-and-properties-overview.mdx @@ -1,10 +1,10 @@ --- title: Other Objects and Properties Overview -keywords: bigpay, configurable_fields, sort, +keywords: bigpay, configurable_fields, sort, --- # Other Objects and Properties Overview - + #### Debugging Your Theme @@ -842,12 +842,12 @@ Refunded, Rejected, or Cancelled | | ↳ state | State | |brand | Brand of card. visa. mastercard etc. | |default_instrument | Boolean, whether the card is the default payment method for the shopper | -| forms | Contains all the availble form fields on the update payments page. Object | +| forms | Contains all the available form fields on the update payments page. Object | |   ↳ action | The url to update payment methods. `/account.php?action=update_payment_method` | |   ↳ billing_fields | Array. The drop down for the billing country selection. | |     ↳ chooseprefix | Appears at the top of the country drop-down. Ex. `Choose a Country` | |     ↳ class_name | Field identifier Ex. `Field200` | -|     ↳ id | Id of the Field Ex. `FormField_11` | +|     ↳ id | ID of the Field Ex. `FormField_11` | |     ↳ label | Field Label . Appears above the field. Ex. `Country`| |     ↳ name | Field identifier `FormField[2][11]` | |     ↳ options | Only returns if the field has a dropdown value | diff --git a/docs/storefront/stencil/draft/store-design-overview.mdx b/docs/storefront/stencil/draft/store-design-overview.mdx index a4fa38c20..c789ee694 100644 --- a/docs/storefront/stencil/draft/store-design-overview.mdx +++ b/docs/storefront/stencil/draft/store-design-overview.mdx @@ -1,8 +1,8 @@ # Store Design Overview - -[Store Design](https://support.bigcommerce.com/s/article/Store-Design) is a browser-based tool that enables BigCommerce merchants to rapidly modify and customize a storefront's look and feel without writing any code. A merchant using Store Design can customize a storefront theme by modifying characteristics from a variety of menu options such as **Styles, Colors, Typography, Buttons**, and more. + +[Store Design](https://support.bigcommerce.com/s/article/Store-Design) is a browser-based tool that enables BigCommerce merchants to rapidly modify and customize a storefront's look and feel without writing any code. A merchant using Store Design can customize a storefront theme by modifying characteristics from a variety of menu options such as **Styles, Colors, Typography, Buttons**, and more. As a theme developer, you can configure your own settings for Store Design. Your configuration determines the theme's customizable aspects. For example, by customizing the configuration of Store Design, you can modify how merchants can customize colors, fonts, display of page features, and number of products to display per feature. @@ -39,7 +39,7 @@ You release your Star Glow theme, version 1. This theme's confi The merchant uses Store Design to change the `logo_size` setting to 175x275. This customized setting is stored in the BigCommerce configuration service. You release Star Glow, version 1.1. In this theme revision, you have changed the `logo_size` to 300x300. When the merchant applies Star Glow version 1.1 to their store, their custom `logo_size` setting of 175x275 remains in effect. -If you the merchant creates a second store and applies Star Glow version 1.1 to it, that store has no custom `logo_size` setting – so it will default to the new theme version's 300x300 value. +If the merchant creates a second store and applies Star Glow version 1.1 to it, that store has no custom `logo_size` setting – so it will default to the new theme version's 300x300 value. ## Resources diff --git a/docs/storefront/stencil/start/tech-stack.mdx b/docs/storefront/stencil/start/tech-stack.mdx index 7fb30b99e..5e7e48ef3 100644 --- a/docs/storefront/stencil/start/tech-stack.mdx +++ b/docs/storefront/stencil/start/tech-stack.mdx @@ -49,7 +49,7 @@ As a developer, you can use Handlebars.js syntax to access objects and use them Stencil objects are categorized as either Global, Common, or Other, which is representative of the object's scope or where in the theme it can be accessed. For example, Global Objects are components shared across the entire BigCommerce storefront. ### Migration handlebars v3 to v4 -Depthed paths are now conditionally pushed onto the stack. If the helper uses the same context, then a new stack is not created. Any instances of ../ in templates must be checked for the correct behavior. See [handlebars.js](https://github.com/handlebars-lang/handlebars.js/issues/1028) documentation for more information. +Depth paths are now conditionally pushed onto the stack. If the helper uses the same context, then a new stack is not created. Any instances of ../ in templates must be checked for the correct behavior. See [handlebars.js](https://github.com/handlebars-lang/handlebars.js/issues/1028) documentation for more information. ## YAML front matter overview diff --git a/docs/storefront/stencil/themes/accessibility/implementing-wcag-guidelines.mdx b/docs/storefront/stencil/themes/accessibility/implementing-wcag-guidelines.mdx index 0f2c7d566..f80260112 100644 --- a/docs/storefront/stencil/themes/accessibility/implementing-wcag-guidelines.mdx +++ b/docs/storefront/stencil/themes/accessibility/implementing-wcag-guidelines.mdx @@ -33,7 +33,7 @@ To satisfy the [Location](https://www.w3.org/TR/WCAG21/#location) WCAG guideline ![Breadcrumbs](https://raw.githubusercontent.com/bigcommerce/dev-docs/master/assets/images/WCAG_guidelines_breadcrumbs.png "Breadcrumbs") ## Unusual Words -To satisfy the [unusual words](https://www.w3.org/TR/WCAG21/#unusual-words) WCAG guideline, add links to your footer categories section in the your theme. We recommend adding links using your store's BigCommerce control panel. Insert a script in the Storefront > Script Manager field. Example code is provided below. Replace each `/page-link/` and `Add Link Name` with the actual links and names. +To satisfy the [unusual words](https://www.w3.org/TR/WCAG21/#unusual-words) WCAG guideline, add links to your footer categories section in your theme. We recommend adding links using your store's BigCommerce control panel. Insert a script in the Storefront > Script Manager field. Example code is provided below. Replace each `/page-link/` and `Add Link Name` with the actual links and names. ```html showLineNumbers diff --git a/docs/storefront/stencil/themes/accessibility/index.mdx b/docs/storefront/stencil/themes/accessibility/index.mdx index 5c5c38917..8289ae2bc 100644 --- a/docs/storefront/stencil/themes/accessibility/index.mdx +++ b/docs/storefront/stencil/themes/accessibility/index.mdx @@ -1,4 +1,4 @@ -# Developing Accessible Themes +# Developing Accessible Themes @@ -17,14 +17,14 @@ Alternative (alt) text is an image description read aloud by a screen reader. Ad In Cornerstone, go to `templates/components/common/store-logo.html`. In the `` tag, provide descriptive alt text for your store logo. - + You can update the `title` attribute with the same text as the `alt` attribute to create a tooltip, or remove it if you do not need it. ```html showLineNumbers -BigCommerce store logo +BigCommerce store logo ``` - + **Alt image text in Page Builder** You can add alt text to the `` element in the Image widget of Page Builder or the `cornerstone/assets/img/` directory. @@ -38,13 +38,13 @@ Follow the steps below to add alt text to an image using Page Builder: ![Image Widget](https://raw.githubusercontent.com/bigcommerce/dev-docs/master/assets/images/accessibility-image-widget.png "Image Widget") ### Aria-label attribute -There are other options for providing text for images. Developers can use the aria-label attribute, a [Web Content Accessibility Guidelines (WCAG)](https://www.w3.org/WAI/standards-guidelines/wcag/) technique that provides assistive technology with the aria-label text instead of the image alt text. +There are other options for providing text for images. Developers can use the aria-label attribute, a [Web Content Accessibility Guidelines (WCAG)](https://www.w3.org/WAI/standards-guidelines/wcag/) technique that provides assistive technology with the aria-label text instead of the image alt text. The aria-label attribute uses an ID reference value that matches the ID element attribute to associate an element with text. Screen readers use the text of one or more identified elements that can be referenced elsewhere on the page. **Popup modal text example** -In Cornerstone, put the following code at the bottom of your stencil template html: +In Cornerstone, put the following code at the bottom of your stencil template HTML: ```html showLineNumbers