-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cover: Add aria-label to fixed and repeated image backgrounds #50990
Merged
Merged
Changes from 9 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
151e5ef
Cover: Add aria-label to fixed and repeated backgrounds
carolinan 169a47a
Update deprecated.js
carolinan 99ccc06
Update duotone and fixed background fixture
carolinan 74f3fe0
Add a new fixture for a cover block with fixed background and alterna…
carolinan db83e19
Update packages/block-library/src/cover/deprecated.js
carolinan c00fad6
Oops: Hide the alt text field for video cover blocks
carolinan d20e9f9
Merge branch 'trunk' into update/cover-background-label
carolinan 9feb3cc
Merge branch 'trunk' into update/cover-background-label
carolinan f684b9a
Merge branch 'trunk' into update/cover-background-label
carolinan f4ed51d
Merge branch 'trunk' into update/cover-background-label
carolinan a40f15a
Merge branch 'trunk' into update/cover-background-label
carolinan f87a8c8
Merge branch 'trunk' into update/cover-background-label
carolinan 59eaff8
Try to fix merge conflicts
carolinan f2e44d9
Try to fix merge conflicts
carolinan 10ca87c
Merge branch 'trunk' into update/cover-background-label
carolinan e1f9bf5
Use constants for attributes and supports
carolinan 3e0d411
Merge branch 'trunk' into update/cover-background-label
carolinan 922e087
Merge branch 'trunk' into update/cover-background-label
carolinan 4423166
Merge branch 'trunk' into update/cover-background-label
carolinan 3d8dcf9
Merge branch 'trunk' into update/cover-background-label
carolinan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
test/integration/fixtures/blocks/core__cover__alt-fixed-background.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!-- wp:cover {"url":"https://w.wiki/59So","id":612,"alt":"Custom alt text","hasParallax":true,"dimRatio":50,"isDark":false,"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-cover is-light has-parallax"><span aria-hidden="true" class="wp-block-cover__background has-background-dim"></span><div role="img" aria-label="Custom alt text" class="wp-block-cover__image-background wp-image-612 has-parallax" style="background-position:50% 50%;background-image:url(https://w.wiki/59So)"></div><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} --> | ||
<p class="has-text-align-center has-large-font-size"></p> | ||
<!-- /wp:paragraph --></div></div> | ||
<!-- /wp:cover --> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if the name of the attribute is reflective of what it does now :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the name could be "accessibleText". I'm not sure that is clearer.