From f41ee990a749cb4a5f755a107c538367a6cfe735 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 May 2022 20:02:59 +0000 Subject: [PATCH 1/3] build(deps-dev): bump lint-staged from 12.4.0 to 12.4.1 Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.4.0 to 12.4.1. - [Release notes](https://github.com/okonet/lint-staged/releases) - [Commits](https://github.com/okonet/lint-staged/compare/v12.4.0...v12.4.1) --- updated-dependencies: - dependency-name: lint-staged dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index a515e8a8e..ef472d35b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "fetch-mock-jest": "^1.5.1", "html-entities": "^2.3.3", "identity-obj-proxy": "^3.0.0", - "lint-staged": "^12.4.0", + "lint-staged": "^12.4.1", "newspack-scripts": "^3.3.0", "prettier": "npm:wp-prettier@^2.2.1-beta-1", "stylelint": "^13.3.1" @@ -16143,9 +16143,9 @@ "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=" }, "node_modules/lint-staged": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-12.4.0.tgz", - "integrity": "sha512-3X7MR0h9b7qf4iXf/1n7RlVAx+EzpAZXoCEMhVSpaBlgKDfH2ewf+QUm7BddFyq29v4dgPP+8+uYpWuSWx035A==", + "version": "12.4.1", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-12.4.1.tgz", + "integrity": "sha512-PTXgzpflrQ+pODQTG116QNB+Q6uUTDg5B5HqGvNhoQSGt8Qy+MA/6zSnR8n38+sxP5TapzeQGTvoKni0KRS8Vg==", "dev": true, "dependencies": { "cli-truncate": "^3.1.0", @@ -42495,9 +42495,9 @@ "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=" }, "lint-staged": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-12.4.0.tgz", - "integrity": "sha512-3X7MR0h9b7qf4iXf/1n7RlVAx+EzpAZXoCEMhVSpaBlgKDfH2ewf+QUm7BddFyq29v4dgPP+8+uYpWuSWx035A==", + "version": "12.4.1", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-12.4.1.tgz", + "integrity": "sha512-PTXgzpflrQ+pODQTG116QNB+Q6uUTDg5B5HqGvNhoQSGt8Qy+MA/6zSnR8n38+sxP5TapzeQGTvoKni0KRS8Vg==", "dev": true, "requires": { "cli-truncate": "^3.1.0", diff --git a/package.json b/package.json index 5abf8e4a8..60ba6fbc8 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "fetch-mock-jest": "^1.5.1", "html-entities": "^2.3.3", "identity-obj-proxy": "^3.0.0", - "lint-staged": "^12.4.0", + "lint-staged": "^12.4.1", "newspack-scripts": "^3.3.0", "prettier": "npm:wp-prettier@^2.2.1-beta-1", "stylelint": "^13.3.1" From d98f8adc3a18b34cecd0e9d1c8b8bcf938c0e2d1 Mon Sep 17 00:00:00 2001 From: Laurel Date: Tue, 3 May 2022 11:44:07 -0700 Subject: [PATCH 2/3] feat: improve alt text on images linked to posts (#1118) --- src/blocks/carousel/view.php | 1 + src/blocks/homepage-articles/templates/article.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/blocks/carousel/view.php b/src/blocks/carousel/view.php index 7a0c20ac9..7f55668af 100644 --- a/src/blocks/carousel/view.php +++ b/src/blocks/carousel/view.php @@ -88,6 +88,7 @@ function newspack_blocks_render_block_carousel( $attributes ) { 'object-fit' => $attributes['imageFit'], 'layout' => 'fill', 'class' => 'contain' === $attributes['imageFit'] ? 'image-fit-contain' : 'image-fit-cover', + 'alt' => trim( wp_strip_all_tags( get_the_title( $post_id ) ) ), ) ); ?> diff --git a/src/blocks/homepage-articles/templates/article.php b/src/blocks/homepage-articles/templates/article.php index 57641ed84..6be7a9322 100644 --- a/src/blocks/homepage-articles/templates/article.php +++ b/src/blocks/homepage-articles/templates/article.php @@ -37,6 +37,7 @@ function( $data ) { } $thumbnail_args = array( 'data-hero-candidate' => true, + 'alt' => trim( wp_strip_all_tags( get_the_title( $post_id ) ) ), ); // If the image position is behind, pass the object-fit setting to maintain styles with AMP. if ( 'behind' === $attributes['mediaPosition'] ) { From 0f65dd7e8293f611aa6d2d81e663b72ae7317931 Mon Sep 17 00:00:00 2001 From: Laurel Date: Wed, 4 May 2022 09:29:43 -0700 Subject: [PATCH 3/3] feat: update donate block styles to support keyboard navigation (#1117) --- src/blocks/donate/view.scss | 48 ++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/src/blocks/donate/view.scss b/src/blocks/donate/view.scss index 80d94f1a9..32d5daff6 100644 --- a/src/blocks/donate/view.scss +++ b/src/blocks/donate/view.scss @@ -10,8 +10,10 @@ width: 100%; input[type='radio'] { - display: none; + left: -99999em; + position: absolute; } + input[readonly] { background-color: $color__background-screen; color: #666; @@ -89,8 +91,14 @@ } } - input[type='radio']:checked { - + .tier-label { + input[type='radio'] { + &:focus + .tier-label { + background: $color__background-screen; + outline: 1px dotted currentColor; + outline-offset: -4px; + } + + &:checked + .tier-label { background-color: $color__primary; border-color: transparent; color: $color__background-body; @@ -245,26 +253,34 @@ } } - input[type='radio']:checked { - + .freq-label { - color: inherit; + input[type='radio'] { + &:checked { + + .freq-label { + color: inherit; - &::before { - background: $color__text-main; - background-clip: content-box; - } + &::before { + background: $color__text-main; + background-clip: content-box; + } - @include media( tablet ) { - border-bottom-color: transparent; + @include media( tablet ) { + border-bottom-color: transparent; + } + + &:hover { + background: $color__background-body; + } } - &:hover { - background: $color__background-body; + ~ .tiers { + display: flex; } } - ~ .tiers { - display: flex; + &:focus + .freq-label { + text-decoration: underline; + text-decoration-style: dotted; + text-decoration-thickness: 1px; } }