FIX: Replace the AM/PM toggle ButtonGroup with ToggleGroupControl.#61562
FIX: Replace the AM/PM toggle ButtonGroup with ToggleGroupControl.#61562patil-vipul wants to merge 473 commits intoWordPress:trunkfrom
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @gutenbergplugin. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @patil-vipul! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
mirka
left a comment
There was a problem hiding this comment.
Great work here, thank you for the contribution!
| * This is not ideal, but best of we can do for now until we refactor | ||
| * AM/PM into accessible elements, like radio buttons. | ||
| */ |
There was a problem hiding this comment.
I believe we can remove this comment now?
Co-authored-by: afercia <afercia@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
…#62137) Co-authored-by: richtabor <richtabor@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
…esence (WordPress#62132) * Refactor image block control rendering logic for clarity. * Refactor conditional rendering logic for block controls. Co-authored-by: amitraj2203 <amitraj2203@git.wordpress.org> Co-authored-by: michalczaplinski <czapla@git.wordpress.org> Co-authored-by: annezazu <annezazu@git.wordpress.org>
* "Edit" instead of color count * remove unused style * use chevron * Update style-variations.spec.js * lint Co-authored-by: richtabor <richtabor@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: annezazu <annezazu@git.wordpress.org>
…r package (WordPress#61879) Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
…uled) (WordPress#62070) Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: annezazu <annezazu@git.wordpress.org>
Add a `scriptmoduledata_{ MODULE_ID }` filter that allows data to be
embedded in page HTML for use by Script Modules.
For example:
add_filter(
'scriptmoduledata_MyScriptModuleID',
function ( array $data ): array {
$data['doesIt'] = 'it works';
return $data;
}
);
See the proposal for details:
https://make.wordpress.org/core/2024/05/06/proposal-server-to-client-data-sharing-for-script-modules/
…#62103) Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
…rdPress#62088) If a block variation's `isActive` property is a `string[]`, support "object paths" (i.e. dot ["property accessors"](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors)), such as ```js isActive: [ 'namespace', 'query.postType' ] ``` --------- Co-authored-by: ntsekouras <ntsekouras@outlook.com>
…dPress#62076) * Implemented: Update alt text decision tree links to be translatable * Implemented: Update alt text decision tree links to be translatable * Implemented Suggestions * Implemented comment related changes Co-authored-by: narenin <narenin@git.wordpress.org> Co-authored-by: joedolson <joedolson@git.wordpress.org> Co-authored-by: michalczaplinski <czapla@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
…rdPress#62074) * hide the presets panel for when there are less or exactly one presets available * tweak logic to return null if there is only one variation (the default). --------- Co-authored-by: draganescu <andraganescu@git.wordpress.org> Co-authored-by: richtabor <richtabor@git.wordpress.org> Co-authored-by: MaggieCabrera <onemaggie@git.wordpress.org> Co-authored-by: bgardner <bgardner@git.wordpress.org> Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org>
…agraph block (WordPress#62069) * Mobile - Prevent deleting content when backspacing in the first Paragraph block at start * Update Changelog Co-authored-by: geriux <geriux@git.wordpress.org> Co-authored-by: twstokes <twstokes@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: ellatrix <ellatrix@git.wordpress.org> Co-authored-by: jeryj <jeryj@git.wordpress.org>
* Add PostDiscussionPanel editor component JSDocs * Auto-generate editor docs or PostDiscussionPanel component * Refine PostDiscussionPanel editor component JSDocs * Auto-generate editor docs for PostDiscussionPanel updates
* Add PostExcerptPanel editor component JSDocs * Auto-generate editor docs for PostExcerptPanel component * Refine PostExcerptPanel editor component JSDocs * Auto-generate editor docs for PostExcerptPanel updates
…onents (WordPress#61970) * Add PostPendingStatus editor component JSDocs * Add PostPendingStatusCheck editor component JSDocs * Auto-generate editor docs for PostPendingStatus additions * Refine PostPendingStatusCheck component JSDocs * Auto-generate editor docs for PostPendingStatusCheck updates
Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
|
Hey @mirka , I lost track of whether this improvement was ever applied in a different PR. In case it hasn't, do you think it's good for us to pick the task up and apply it? |
|
@ciampo There are some folks in #61163 volunteering to pick this up, FWIW. @patil-vipul Are you still willing to re-submit your PR? |
What?
Fixes #61163
Why?
When the is12Hour={true} setting is enabled, the AM/PM toggle relies solely on visual cues to convey its state, which presents a challenge for screen readers. This design overlooks accessibility needs, potentially creating barriers for users who rely on such assistive technologies.
How?
The previous ButtonGroup for toggling between AM/PM is replaced with ToggleGroupControl for better accessibility.
Testing Instructions
Testing Instructions for Keyboard
Tabkey.Spacebar.Screenshots or screencast