File tree 1 file changed +3
-2
lines changed
src/webchat-ui/components/presentational
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ const Header: FC<HeaderProps> = props => {
139
139
} = props ;
140
140
141
141
const ariaLabels = useSelector ( state => state . config . settings . customTranslations ?. ariaLabels ) ;
142
+ const settings = useSelector ( state => state . config . settings ) ;
143
+
142
144
const handleCloseClick = ( ) => {
143
145
onClose ?.( ) ;
144
146
// Restore focus to chat toggle button
@@ -148,7 +150,6 @@ const Header: FC<HeaderProps> = props => {
148
150
const handleMenuClick = ( ) => {
149
151
onSetShowChatOptionsScreen ?.( true ) ;
150
152
} ;
151
-
152
153
return (
153
154
< >
154
155
< HeaderBar { ...rest } className = "webchat-header-bar" >
@@ -209,7 +210,7 @@ const Header: FC<HeaderProps> = props => {
209
210
< HeaderIconButton
210
211
data-header-menu-button
211
212
onClick = { handleMenuClick }
212
- aria-label = { ariaLabels ?. chatOptions ?? "Menu" }
213
+ aria-label = { ariaLabels ?. chatOptions ?? settings . chatOptions . title }
213
214
ref = { menuButtonRef }
214
215
>
215
216
< MenuIcon />
You can’t perform that action at this time.
0 commit comments