Skip to content

Commit

Permalink
alert: typo in the alternative text of the close button (#6745)
Browse files Browse the repository at this point in the history
  • Loading branch information
laske185 authored Aug 27, 2024
2 parents 3338189 + 5e642b6 commit a60ae96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/components/alert/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class KolAlertWc implements AlertAPI {
icon: 'codicon codicon-close',
},
}}
_label={translate('kol-close-alert', { placeholders: { label: this.state._label as string } })}
_label={translate('kol-close-alert', { placeholders: { label: this.state._label?.trim() || '' } })}
_on={this.on}
_tooltipAlign="left"
></KolButtonWcTag>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
dropdown: 'Dropdown',
'nav-label-open': 'Submenu for {{label}} open',
'nav-label-close': 'Submenu for {{label}} close',
'close-alert': 'Notification {{label}} close',
'close-alert': 'Close notification {{label}}',
'show-password': 'Show',
'hide-password': 'Hide',
'no-results-message': 'No results found.',
Expand Down

0 comments on commit a60ae96

Please sign in to comment.