Skip to content

Commit

Permalink
[PR feedback] Token var name
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored Jun 27, 2024
1 parent f7ec16a commit ccae8be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/eui/src/components/form/file_picker/file_picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ export class EuiFilePickerClass extends Component<

return (
<EuiI18n
token="euiFilePicker.removeSelectedFiles"
token="euiFilePicker.removeSelectedAriaLabel"
default="Remove selected files"
>
{(removeSelectedFiles: string) => {
{(removeSelectedAriaLabel: string) => {
const {
stylesMemoizer,
id,
Expand Down Expand Up @@ -244,7 +244,7 @@ export class EuiFilePickerClass extends Component<
if (normalFormControl) {
clearButton = (
<EuiFormControlLayoutClearButton
aria-label={removeSelectedFiles}
aria-label={removeSelectedAriaLabel}
css={[styles.euiFilePicker__clearButton, rightIconStyles]}
className="euiFilePicker__clearButton"
onClick={this.removeFiles}
Expand All @@ -254,7 +254,7 @@ export class EuiFilePickerClass extends Component<
} else {
clearButton = (
<EuiButtonEmpty
aria-label={removeSelectedFiles}
aria-label={removeSelectedAriaLabel}
css={styles.euiFilePicker__clearButton}
className="euiFilePicker__clearButton"
size="xs"
Expand Down

0 comments on commit ccae8be

Please sign in to comment.