Merge pull request #2048 from understrap/develop

Release v1.2.2  - WooCommerce template updates
This commit is contained in:
Brian Coords 2023-01-16 15:19:06 -08:00 committed by GitHub
commit 546b350b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
41 changed files with 108 additions and 51 deletions

View File

@ -8,6 +8,12 @@
-
## Release 1.2.2 January 16th 2023
** Fixes **
- Updates WooCommerce templates as of 7.1.0
## Release 1.2.1 November 17th 2022
** Fixes **

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -8757,7 +8757,7 @@ button.bg-dark:focus {
}
}
.sr-only, a.skip-link {
.sr-only {
position: absolute;
width: 1px;
height: 1px;
@ -8769,7 +8769,7 @@ button.bg-dark:focus {
border: 0;
}
.sr-only-focusable:active, a.skip-link:active, .sr-only-focusable:focus, a.skip-link:focus {
.sr-only-focusable:active, .sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
@ -11086,6 +11086,26 @@ article img,
height: auto;
}
a.skip-link {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
a.skip-link:active, a.skip-link:focus {
position: static;
width: auto;
height: auto;
overflow: visible;
clip: auto;
white-space: normal;
}
.navbar-dark .navbar-nav .dropdown-menu .nav-link {
display: block;
width: 100%;
@ -14669,7 +14689,7 @@ figure.woocommerce-product-gallery__wrapper {
content: "\f2e0";
}
.sr-only, a.skip-link {
.sr-only {
position: absolute;
width: 1px;
height: 1px;
@ -14680,7 +14700,7 @@ figure.woocommerce-product-gallery__wrapper {
border: 0;
}
.sr-only-focusable:active, a.skip-link:active, .sr-only-focusable:focus, a.skip-link:focus {
.sr-only-focusable:active, .sr-only-focusable:focus {
position: static;
width: auto;
height: auto;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -7748,8 +7748,7 @@ textarea.form-control-lg {
}
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within),
a.skip-link:not(:focus):not(:focus-within) {
.visually-hidden-focusable:not(:focus):not(:focus-within) {
position: absolute !important;
width: 1px !important;
height: 1px !important;
@ -11794,6 +11793,18 @@ article img,
height: auto;
}
a.skip-link:not(:focus):not(:focus-within) {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}
.navbar-dark .navbar-nav .dropdown-menu .nav-link {
display: block;
width: 100%;

File diff suppressed because one or more lines are too long

2
css/theme.min.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -29,7 +29,9 @@ $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' );
<!-- ******************* The Navbar Area ******************* -->
<header id="wrapper-navbar">
<a class="skip-link" href="#content"><?php esc_html_e( 'Skip to content', 'understrap' ); ?></a>
<a class="skip-link <?php echo understrap_get_screen_reader_class( true ); ?>" href="#content">
<?php esc_html_e( 'Skip to content', 'understrap' ); ?>
</a>
<?php get_template_part( 'global-templates/navbar', $navbar_type . '-' . $bootstrap_version ); ?>

View File

@ -1 +1 @@
{"--bs-blue":"#0d6efd","--bs-indigo":"#6610f2","--bs-purple":"#5533ff","--bs-pink":"#d63384","--bs-red":"#dc3545","--bs-orange":"#fd7e14","--bs-yellow":"#ffc107","--bs-green":"#198754","--bs-teal":"#20c997","--bs-cyan":"#0dcaf0","--bs-white":"#fff","--bs-gray":"#6c757d","--bs-gray-dark":"#343a40"}
{"--blue":"#007bff","--indigo":"#6610f2","--purple":"#5533ff","--pink":"#e83e8c","--red":"#dc3545","--orange":"#fd7e14","--yellow":"#ffc107","--green":"#28a745","--teal":"#20c997","--cyan":"#17a2b8","--white":"#fff","--gray":"#6c757d","--gray-dark":"#343a40"}

View File

@ -371,3 +371,20 @@ if ( ! function_exists( 'understrap_get_list_item_separator' ) ) {
return esc_html__( ', ', 'understrap' );
}
}
if ( ! function_exists( 'understrap_get_screen_reader_class' ) ) {
/**
* Retrieves Bootstrap's screen reader text class.
*
* @param bool $focusable (Optional) Whether to make the screen reader text
* visually focusable. Default: false.
* @return string Bootstrap's screen reader text class.
*/
function understrap_get_screen_reader_class( $focusable = false ) {
$bootstrap_version = get_theme_mod( 'understrap_bootstrap_version', 'bootstrap4' );
if ( 'bootstrap4' === $bootstrap_version ) {
return $focusable ? 'sr-only sr-only-focusable' : 'sr-only';
}
return $focusable ? 'visually-hidden-focusable' : 'visually-hidden';
}
}

View File

@ -1,6 +1,6 @@
/*!
* Understrap v1.2.1 (https://understrap.com)
* Copyright 2013-2022 The UnderStrap Authors (https://github.com/understrap/understrap/graphs/contributors)
* Understrap v1.2.2 (https://understrap.com)
* Copyright 2013-2023 The UnderStrap Authors (https://github.com/understrap/understrap/graphs/contributors)
* Licensed under GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html)
*/
(function (global, factory) {

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
/*!
* Understrap v1.2.1 (https://understrap.com)
* Copyright 2013-2022 The UnderStrap Authors (https://github.com/understrap/understrap/graphs/contributors)
* Understrap v1.2.2 (https://understrap.com)
* Copyright 2013-2023 The UnderStrap Authors (https://github.com/understrap/understrap/graphs/contributors)
* Licensed under GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html)
*/
(function (global, factory) {

4
js/theme.min.js vendored

File diff suppressed because one or more lines are too long

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "understrap",
"version": "1.2.1",
"version": "1.2.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "understrap",
"version": "1.2.1",
"version": "1.2.2",
"license": "GPL-3.0",
"devDependencies": {
"@babel/core": "^7.19.6",

View File

@ -1,6 +1,6 @@
{
"name": "understrap",
"version": "1.2.1",
"version": "1.2.2",
"description": "WordPress Theme framework",
"main": "index.js",
"scripts": {

View File

@ -76,6 +76,7 @@
<element value="get_the_archive_title"/>
<element value="get_the_archive_description"/>
<element value="understrap_get_list_item_separator"/>
<element value="understrap_get_screen_reader_class"/>
</property>
</properties>
</rule>

View File

@ -150,10 +150,10 @@ article img,
// Skip to content link
a.skip-link {
@if variable-exists('bootstrap4') {
@extend .sr-only;
@extend .sr-only-focusable;
@include sr-only();
@include sr-only-focusable();
} @else {
@extend .visually-hidden-focusable;
@include visually-hidden-focusable();
}
}

View File

@ -5,7 +5,7 @@ Author: Howard Development &amp; Consulting
Author URI: https://howarddc.com
GitHub Theme URI: https://github.com/understrap/understrap
Description: The renowned WordPress starter theme framework that combined Underscores and Bootstrap. Trusted by more than 100,000 developers for building handcrafted, custom WordPress sites.
Version: 1.2.1
Version: 1.2.2
Requires at least: 5.0
Tested up to: 6.1
Requires PHP: 5.2

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.5.0
* @version 7.0.1
*/
defined( 'ABSPATH' ) || exit;

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.8.0
* @version 7.0.1
*/
defined( 'ABSPATH' ) || exit;

View File

@ -14,7 +14,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 2.4.0
* @version 7.0.1
*/
// Exit if accessed directly.

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.4.4
* @version 7.0.1
*/
defined( 'ABSPATH' ) || exit;

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 5.2.0
* @version 7.0.1
*/
defined( 'ABSPATH' ) || exit;

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.5.3
* @version 7.0.1
*/
defined( 'ABSPATH' ) || exit;

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.6.0
* @version 7.1.0
*/
// Exit if accessed directly.
@ -35,7 +35,7 @@ if ( is_user_logged_in() ) {
</p>
<p class="form-row form-row-last">
<label for="password"><?php esc_html_e( 'Password', 'woocommerce' ); ?>&nbsp;<span class="required">*</span></label>
<input class="input-text form-control" type="password" name="password" id="password" autocomplete="current-password" />
<input class="input-text woocommerce-Input form-control" type="password" name="password" id="password" autocomplete="current-password" />
</p>
<div class="clear"></div>

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.5.0
* @version 7.0.1
*/
defined( 'ABSPATH' ) || exit;

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.6.0
* @version 7.0.1
*/
defined( 'ABSPATH' ) || exit;

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 6.0.0
* @version 7.0.1
*/
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.5.2
* @version 7.0.1
*/
defined( 'ABSPATH' ) || exit;

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.5.5
* @version 7.0.1
*/
defined( 'ABSPATH' ) || exit;

View File

@ -14,7 +14,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.7.0
* @version 7.0.1
*/
defined( 'ABSPATH' ) || exit;

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.3.0
* @version 7.0.1
*/
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.4.0
* @version 7.0.1
*/
defined( 'ABSPATH' ) || exit;

View File

@ -4,7 +4,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.4.0
* @version 7.0.1
*/
defined( 'ABSPATH' ) || exit;