actually pass role="tabpanel" to the DOM for FilePanel and NotifPanel

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2019-10-14 10:44:42 +01:00
parent c882b7f332
commit d3517cdb71
2 changed files with 21 additions and 21 deletions

View File

@ -117,17 +117,17 @@ const FilePanel = createReactClass({
// console.log("rendering TimelinePanel for timelineSet " + this.state.timelineSet.room.roomId + " " + // console.log("rendering TimelinePanel for timelineSet " + this.state.timelineSet.room.roomId + " " +
// "(" + this.state.timelineSet._timelines.join(", ") + ")" + " with key " + this.props.roomId); // "(" + this.state.timelineSet._timelines.join(", ") + ")" + " with key " + this.props.roomId);
return ( return (
<TimelinePanel key={"filepanel_" + this.props.roomId} <div className="mx_FilePanel" role="tabpanel">
className="mx_FilePanel" <TimelinePanel key={"filepanel_" + this.props.roomId}
manageReadReceipts={false} manageReadReceipts={false}
manageReadMarkers={false} manageReadMarkers={false}
timelineSet={this.state.timelineSet} timelineSet={this.state.timelineSet}
showUrlPreview = {false} showUrlPreview = {false}
tileShape="file_grid" tileShape="file_grid"
resizeNotifier={this.props.resizeNotifier} resizeNotifier={this.props.resizeNotifier}
empty={_t('There are no visible files in this room')} empty={_t('There are no visible files in this room')}
role="tabpanel" />
/> </div>
); );
} else { } else {
return ( return (

View File

@ -38,16 +38,16 @@ const NotificationPanel = createReactClass({
const timelineSet = MatrixClientPeg.get().getNotifTimelineSet(); const timelineSet = MatrixClientPeg.get().getNotifTimelineSet();
if (timelineSet) { if (timelineSet) {
return ( return (
<TimelinePanel key={"NotificationPanel_" + this.props.roomId} <div className="mx_NotificationPanel" role="tabpanel">
className="mx_NotificationPanel" <TimelinePanel key={"NotificationPanel_" + this.props.roomId}
manageReadReceipts={false} manageReadReceipts={false}
manageReadMarkers={false} manageReadMarkers={false}
timelineSet={timelineSet} timelineSet={timelineSet}
showUrlPreview={false} showUrlPreview={false}
tileShape="notif" tileShape="notif"
empty={_t('You have no visible notifications')} empty={_t('You have no visible notifications')}
role="tabpanel" />
/> </div>
); );
} else { } else {
console.error("No notifTimelineSet available!"); console.error("No notifTimelineSet available!");