This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree 3 files changed +8
-17
lines changed
3 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -18,25 +18,16 @@ limitations under the License.
18
18
19
19
import React from "react" ;
20
20
21
- import { RovingAccessibleButton , RovingAccessibleTooltipButton } from "../RovingTabIndex" ;
21
+ import { RovingAccessibleButton } from "../RovingTabIndex" ;
22
22
23
23
interface IProps extends React . ComponentProps < typeof RovingAccessibleButton > {
24
24
label ?: string ;
25
- tooltip ?: string ;
26
25
}
27
26
28
27
// Semantic component for representing a role=menuitem
29
- export const MenuItem : React . FC < IProps > = ( { children, label, tooltip , ...props } ) => {
28
+ export const MenuItem : React . FC < IProps > = ( { children, label, ...props } ) => {
30
29
const ariaLabel = props [ "aria-label" ] || label ;
31
30
32
- if ( tooltip ) {
33
- return (
34
- < RovingAccessibleTooltipButton { ...props } role = "menuitem" aria-label = { ariaLabel } title = { tooltip } >
35
- { children }
36
- </ RovingAccessibleTooltipButton >
37
- ) ;
38
- }
39
-
40
31
return (
41
32
< RovingAccessibleButton { ...props } role = "menuitem" aria-label = { ariaLabel } >
42
33
{ children }
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ const DmAuxButton: React.FC<IAuxButtonProps> = ({ tabIndex, dispatcher = default
160
160
showSpaceInvite ( activeSpace ) ;
161
161
} }
162
162
disabled = { ! canInvite }
163
- tooltip = { canInvite ? undefined : _t ( "spaces|error_no_permission_invite" ) }
163
+ title = { canInvite ? undefined : _t ( "spaces|error_no_permission_invite" ) }
164
164
/>
165
165
) }
166
166
</ IconizedContextMenuOptionList >
@@ -250,7 +250,7 @@ const UntaggedAuxButton: React.FC<IAuxButtonProps> = ({ tabIndex }) => {
250
250
PosthogTrackers . trackInteraction ( "WebRoomListRoomsSublistPlusMenuCreateRoomItem" , e ) ;
251
251
} }
252
252
disabled = { ! canAddRooms }
253
- tooltip = { canAddRooms ? undefined : _t ( "spaces|error_no_permission_create_room" ) }
253
+ title = { canAddRooms ? undefined : _t ( "spaces|error_no_permission_create_room" ) }
254
254
/>
255
255
{ videoRoomsEnabled && (
256
256
< IconizedContextMenuOption
@@ -266,7 +266,7 @@ const UntaggedAuxButton: React.FC<IAuxButtonProps> = ({ tabIndex }) => {
266
266
) ;
267
267
} }
268
268
disabled = { ! canAddRooms }
269
- tooltip = { canAddRooms ? undefined : _t ( "spaces|error_no_permission_create_room" ) }
269
+ title = { canAddRooms ? undefined : _t ( "spaces|error_no_permission_create_room" ) }
270
270
>
271
271
< BetaPill />
272
272
</ IconizedContextMenuOption >
@@ -281,7 +281,7 @@ const UntaggedAuxButton: React.FC<IAuxButtonProps> = ({ tabIndex }) => {
281
281
showAddExistingRooms ( activeSpace ) ;
282
282
} }
283
283
disabled = { ! canAddRooms }
284
- tooltip = { canAddRooms ? undefined : _t ( "spaces|error_no_permission_add_room" ) }
284
+ title = { canAddRooms ? undefined : _t ( "spaces|error_no_permission_add_room" ) }
285
285
/>
286
286
</ >
287
287
) : null }
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
267
267
closePlusMenu ( ) ;
268
268
} }
269
269
disabled = { ! canAddSubRooms }
270
- tooltip = { ! canAddSubRooms ? _t ( "spaces|error_no_permission_add_room" ) : undefined }
270
+ title = { ! canAddSubRooms ? _t ( "spaces|error_no_permission_add_room" ) : undefined }
271
271
/>
272
272
{ canCreateSpaces && (
273
273
< IconizedContextMenuOption
@@ -280,7 +280,7 @@ const RoomListHeader: React.FC<IProps> = ({ onVisibilityChange }) => {
280
280
closePlusMenu ( ) ;
281
281
} }
282
282
disabled = { ! canAddSubSpaces }
283
- tooltip = { ! canAddSubSpaces ? _t ( "spaces|error_no_permission_add_space" ) : undefined }
283
+ title = { ! canAddSubSpaces ? _t ( "spaces|error_no_permission_add_space" ) : undefined }
284
284
>
285
285
< BetaPill />
286
286
</ IconizedContextMenuOption >
You can’t perform that action at this time.
0 commit comments