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
Add new category form improvements #2588
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2588 +/- ##
==========================================
+ Coverage 31.68% 32.64% +0.96%
==========================================
Files 175 177 +2
Lines 5312 5881 +569
Branches 915 1093 +178
==========================================
+ Hits 1683 1920 +237
- Misses 3081 3304 +223
- Partials 548 657 +109
Continue to review full report at Codecov.
|
@@ -114,7 +115,7 @@ class HierarchicalTermSelector extends Component { | |||
adding: false, | |||
formName: '', | |||
formParent: '', | |||
showForm: false, |
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 guess we could drop it entirely here
Previously closed form after add, now leaves _as is_, so no need to explicitly assigned
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 made suggested changes per https://github.com/WordPress/gutenberg/pull/2588/files#r135794709 in f769c91. Looks good 👍
Thanks! Will split a few pending improvements in a new issue. |
This PR tries to improve a bit the accessibility of the mini-form used to add new categories. Further improvements should be addressed in separate issues, see #2582 and #2581.
withInstanceId
button-link
s used in the sidebar, e.g. "set featured image"type="text"
to the input field (this also fixes the focus style)aria-expanded
to the toggleFixes #2572