Skip to content

Commit

Permalink
Adding tabpanel role to the panels.
Browse files Browse the repository at this point in the history
  • Loading branch information
sednanref committed Feb 18, 2019
1 parent d97f4b5 commit 9a9bf76
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class CollectionsPanel extends React.Component {
});

return (
<div className="ui bottom attached" ref="tagsPanel">
<div className="ui bottom attached" ref="tagsPanel" role="tabpanel">
<h3 className="ui dividing header">{this.context.intl.formatMessage(this.messages.header)}</h3>

<div className="ui stackable grid">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ContentDiscussionPanel extends React.Component {
</button>);

return (
<div className="ui comments" style={{maxWidth: 'none'}}>
<div className="ui comments" style={{maxWidth: 'none'}} role="tabpanel">
{ (String(this.props.UserProfileStore.userid) !== '') ? addComment : ''}
<h3 className="ui dividing header">
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class DeckHistoryPanel extends React.Component {
);
});
return (
<div ref="deckHistoryPanel" className="ui">
<div ref="deckHistoryPanel" className="ui" role="tabpanel">
{isRoot && this.props.PermissionsStore.permissions.edit && !this.props.PermissionsStore.permissions.readOnly ?
<div><Button positive aria-label={this.context.intl.formatMessage(form_messages.button_aria)} size='small' floated='right'
icon='plus'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class SlideHistoryPanel extends React.Component {
}) : this.context.intl.formatMessage(form_messages.no_changes);

return (
<div ref="slideHistoryPanel" className="ui">
<div ref="slideHistoryPanel" className="ui" role="tabpanel">
<List relaxed>
{changes}
</List>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class ContentQuestionsPanel extends React.Component {
);

return (
<div ref="contentQuestionsPanel" className="ui bottom attached">
<div ref="contentQuestionsPanel" className="ui bottom attached" role="tabpanel">
{ this.props.ContentQuestionsStore.showAddBox ? questionAdd : this.props.ContentQuestionsStore.question ? questionEdit : this.props.ContentQuestionsStore.showExamList ? examQuestionsList : content }
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ContentUsagePanel extends React.Component {

render() {
return (
<div ref="contentUsagePanel" className="ui">
<div ref="contentUsagePanel" className="ui" role="tabpanel">
<ContentUsageList usage={this.props.ContentUsageStore.usage} selector={this.props.ContentUsageStore.selector} />
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class DataSourcePanel extends React.Component {
let editForm = <EditDataSource dataSource={dataSource}/>;

return (
<div className="ui bottom attached" ref="dataSourcePanel">
<div className="ui bottom attached" ref="dataSourcePanel" role="tabpanel">
{(dataSource === undefined) ?
newDataSourceButton : ''}
{(dataSource === undefined) ?
Expand Down
2 changes: 1 addition & 1 deletion components/Deck/ContentModulesPanel/TagsPanel/TagsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class TagsPanel extends React.Component {
let editPermission = (this.props.PermissionsStore.permissions.admin || this.props.PermissionsStore.permissions.edit);

return (
<div className="ui bottom attached" ref="tagsPanel">
<div className="ui bottom attached" ref="tagsPanel" role="tabpanel">
<div className="ui stackable grid">
<div className="row">
<div className="eight wide column">
Expand Down

0 comments on commit 9a9bf76

Please sign in to comment.