-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Inserter: Update the search form placeholder text when changing tabs #24697
Conversation
…rch box can show the correct placeholder wording.
Size Change: +1.81 kB (0%) Total Size: 1.16 MB
ℹ️ View Unchanged
|
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.
Does what it says.
This is because the search was meant to be global but it hasn't been fully implemented yet. It might be helpful to add this clue in the meantime. cc @youknowriad |
Seems to me this change made the "quick inserter" search input unlabelled (and with no placeholder text):
Seems to me the new function @apeatling can you please have a look, when you have a chance? Aside: as mentioned in #24494 and in other previous conversations, it would be really great to have some kind of automated tests to make sure all form elements are properly labelled, see als #6098. /Cc @youknowriad |
Will get this fixed this morning. 👍 |
Description
When changing tabs between: "Blocks | Patterns | Reusable", the search form does not change its placeholder text. This means when looking at the Patterns or Reusable tabs, it still says "Search for a block".
This PR makes sure that the placeholder in the search input field changes depending on the tab you have selected.
How has this been tested?
Tested locally and all tests run and passed.
Screenshots
Types of changes
Bug fix, non breaking change.
Checklist: