#40662 closed defect (bug) (fixed)
Archive widget doesn't show the selected month name in the frontend widget itself
Reported by: | Themonic | Owned by: | afercia |
---|---|---|---|
Milestone: | 5.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Widgets | Keywords: | has-screenshots has-patch has-dev-note |
Focuses: | ui, accessibility, javascript | Cc: |
Description
Archive widget doesn't show the selected month name like the category widget shows the selected category name, although the widget works fine it always show "Select Month". Tested with Twenty Seventeen and several other themes.
Attachments (5)
Change History (32)
#1
@
8 years ago
- Keywords has-screenshots needs-patch added
- Version 4.7.4 deleted
@
8 years ago
Added preselecting of the currently opened archive page in the archives dropdown widgets #wcpl2017
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
8 years ago
#4
@
8 years ago
- Milestone changed from Awaiting Review to 4.8.1
Thanks @robobot3000 ! And hello #wcpl2017! Yep, needs to take care of all the cases, yearly/monthly/weekly/daily/. Looks good!
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
7 years ago
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
7 years ago
This ticket was mentioned in Slack in #core by westonruter. View the logs.
7 years ago
This ticket was mentioned in Slack in #accessibility by rianrietveld. View the logs.
6 years ago
#15
@
6 years ago
- Milestone changed from 5.0 to 5.1
Moving to the 5.1 milestone due to the WordPress 5.0 focus on the new
editor (Gutenberg).
#16
@
6 years ago
- Keywords needs-refresh added
- Milestone changed from 5.1 to Future Release
Patch needs refresh and testing/review.
#17
@
6 years ago
- Keywords needs-testing added; needs-refresh removed
Attached an updated version of the patch
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
6 years ago
#20
@
6 years ago
- Keywords needs-dev-note added
- Owner changed from davidakennedy to audrasjb
In 40662.4.diff, I refreshed the last patch against trunk and I added the full inline Documentation for the new feature.
Also, I believe this ticket will deserve a little Dev note if it lands in 5.2.
Cheers,
Jb
#21
@
6 years ago
- Keywords needs-refresh added; needs-testing removed
Noticed a couple things:
1
The patch needs some coding standards. Please run
phpcs --standard=phpcs.xml.dist src/wp-includes/general-template.php
and fix all the warning/errors marked with [x]
2
As a long-term goal, these selects shouldn't use the change event. For now, there's the need to address a behavior that didn't matter before but is now relevant:
- select a month
- the page reloads displaying the correct month
- select again the default option "Select Month"
- the page reloads: this shouldn't happen
- comparing with what the Categories select does, the JavaScript should be modernized a bit and not trigger a page reload when the default option is selected
- this means the markup should be changed too, to wrap the select with a
<form>
element (see for inspiration the Categories widget)
#23
@
6 years ago
- Keywords commit added; needs-refresh removed
40662.5.diff makes phpcs happy and updates the JS part. No need for a <form>
element in this case. Looks good to me.
Confirmed, when both widgets are set to "Display as dropdown".
Screenshots to illustrate what happens after selecting a categiry/archive month and page reloads. Worth noting these selects have other accessibility issues (they should not use the change event and have a button to submit) but they should be addressed in a separate ticket. Also, they don't have a no-js fallback.
the selected category is preserved:
the selected month isn't: