Skip to content

Commit

Permalink
Add label to input field (#2127)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjray authored Jun 5, 2023
1 parent 33ee4bb commit 3067d00
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@
"Title": "Title",
"To go to your company’s login page, enter the custom domain name.": "To go to your company’s login page, enter the custom domain name.",
"Type:": "Type:",
"Type to filter": "Type to filter",
"Uh oh, we've encountered an error. You may need to": "Uh oh, we've encountered an error. You may need to",
"Uh oh. There was an error communicating with your {{orgType}} for {{parent}} “{{name}}.”": "Uh oh. There was an error communicating with your {{orgType}} for {{parent}} “{{name}}.”",
"Uh oh. There was an error communicating with your {{orgType}}.": "Uh oh. There was an error communicating with your {{orgType}}.",
Expand Down
1 change: 1 addition & 0 deletions locales_dev/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@
"Timestamp": "Timestamp",
"Title": "Title",
"To go to your company’s login page, enter the custom domain name.": "To go to your company’s login page, enter the custom domain name.",
"Type to filter": "Type to filter",
"Type:": "Type:",
"Uh oh, we've encountered an error. You may need to": "Uh oh, we've encountered an error. You may need to",
"Uh oh. There was an error communicating with your {{orgType}} for {{parent}} “{{name}}.”": "Uh oh. There was an error communicating with your {{orgType}} for {{parent}} “{{name}}.”",
Expand Down
3 changes: 2 additions & 1 deletion src/js/components/githubUsers/assignTaskRole.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,10 @@ const AssignTaskRoleModal = ({
slds-p-bottom_medium"
>
<Search
label={t('Search for user')}
value={findText}
assistiveText={{ label: t('Search for user') }}
placeholder={t('Search for user')}
placeholder={t('Type to filter')}
onChange={handleFindTextChange}
clearable
onClear={handleClearFindText}
Expand Down
2 changes: 1 addition & 1 deletion test/js/components/githubUsers/assignTaskRole.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe('AssignTaskRole', () => {
test('can filter by name/username', () => {
const { getAllByText, getByPlaceholderText, getByText, queryByText } =
setup();
const input = getByPlaceholderText('Search for user');
const input = getByPlaceholderText('Type to filter');

expect(queryByText('No users found.')).toBeNull();

Expand Down

0 comments on commit 3067d00

Please sign in to comment.