@instructure/quiz-core 20.31.2-snapshot.22 → 20.31.2-snapshot.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,7 @@ import PropTypes from 'prop-types';
9
9
  import { withStyle, jsx } from '@instructure/emotion';
10
10
  import generateStyle from "./styles.js";
11
11
  import generateComponentTheme from "./theme.js";
12
+ import t from '@instructure/quiz-i18n/es/format-message';
12
13
  export var Page = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_Page = /*#__PURE__*/function (_Component) {
13
14
  _inherits(Page, _Component);
14
15
  var _super = _createSuper(Page);
@@ -50,7 +51,8 @@ export var Page = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
50
51
  tabIndex: "-1",
51
52
  ref: this.props.childrenWrapperRef,
52
53
  role: this.props.contentRole,
53
- css: this.props.styles.childrenWrapper
54
+ css: this.props.styles.childrenWrapper,
55
+ "aria-label": t('Quiz content')
54
56
  }, this.props.children));
55
57
  }
56
58
  }]);
@@ -68,7 +70,7 @@ export var Page = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
68
70
  makeStyles: PropTypes.func
69
71
  }, _Page.defaultProps = {
70
72
  childrenWrapperRef: function childrenWrapperRef() {},
71
- contentRole: 'main',
73
+ contentRole: 'region',
72
74
  sidebarComponent: null,
73
75
  sidebarOpen: null,
74
76
  sidebarRole: 'navigation',
@@ -290,7 +290,8 @@ export var Sidebar = (_dec = withStyle(generateStyle, generateComponentTheme), _
290
290
  // take the click and scroll to itself when the nav is clicked by SR
291
291
  ,
292
292
  onClick: noop,
293
- id: SIDEBAR_NAV_ID
293
+ id: SIDEBAR_NAV_ID,
294
+ "aria-label": t('Question Navigator')
294
295
  }, this.renderSidebarHeader(), this.renderTotalPointsPossible(), this.renderPinned(), this.renderTitle(), this.renderInstructions(), this.renderResults(), jsx("div", {
295
296
  css: this.props.styles.sidebarContent
296
297
  }, this.props.children)))));
@@ -14,6 +14,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
14
14
  var _emotion = require("@instructure/emotion");
15
15
  var _styles = _interopRequireDefault(require("./styles.js"));
16
16
  var _theme = _interopRequireDefault(require("./theme.js"));
17
+ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
17
18
  var _dec, _class, _Page;
18
19
  /** @jsx jsx */
19
20
  var Page = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_Page = /*#__PURE__*/function (_Component) {
@@ -57,7 +58,8 @@ var Page = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
57
58
  tabIndex: "-1",
58
59
  ref: this.props.childrenWrapperRef,
59
60
  role: this.props.contentRole,
60
- css: this.props.styles.childrenWrapper
61
+ css: this.props.styles.childrenWrapper,
62
+ "aria-label": (0, _formatMessage.default)('Quiz content')
61
63
  }, this.props.children));
62
64
  }
63
65
  }]);
@@ -75,7 +77,7 @@ var Page = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
75
77
  makeStyles: _propTypes.default.func
76
78
  }, _Page.defaultProps = {
77
79
  childrenWrapperRef: function childrenWrapperRef() {},
78
- contentRole: 'main',
80
+ contentRole: 'region',
79
81
  sidebarComponent: null,
80
82
  sidebarOpen: null,
81
83
  sidebarRole: 'navigation',
@@ -297,7 +297,8 @@ var Sidebar = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
297
297
  // take the click and scroll to itself when the nav is clicked by SR
298
298
  ,
299
299
  onClick: _noop.default,
300
- id: _quizCommon.SIDEBAR_NAV_ID
300
+ id: _quizCommon.SIDEBAR_NAV_ID,
301
+ "aria-label": (0, _formatMessage.default)('Question Navigator')
301
302
  }, this.renderSidebarHeader(), this.renderTotalPointsPossible(), this.renderPinned(), this.renderTitle(), this.renderInstructions(), this.renderResults(), (0, _emotion.jsx)("div", {
302
303
  css: this.props.styles.sidebarContent
303
304
  }, this.props.children)))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "20.31.2-snapshot.22+0ea974b4c",
3
+ "version": "20.31.2-snapshot.23+b671f4530",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -46,11 +46,11 @@
46
46
  "@instructure/emotion": "^8.56.3",
47
47
  "@instructure/grading-utils": "^1.0.0",
48
48
  "@instructure/outcomes-ui": "^3.2.2",
49
- "@instructure/quiz-common": "^20.31.2-snapshot.22+0ea974b4c",
50
- "@instructure/quiz-i18n": "^20.31.2-snapshot.22+0ea974b4c",
51
- "@instructure/quiz-interactions": "^20.31.2-snapshot.22+0ea974b4c",
52
- "@instructure/quiz-number-input": "^20.31.2-snapshot.22+0ea974b4c",
53
- "@instructure/quiz-rce": "^20.31.2-snapshot.22+0ea974b4c",
49
+ "@instructure/quiz-common": "^20.31.2-snapshot.23+b671f4530",
50
+ "@instructure/quiz-i18n": "^20.31.2-snapshot.23+b671f4530",
51
+ "@instructure/quiz-interactions": "^20.31.2-snapshot.23+b671f4530",
52
+ "@instructure/quiz-number-input": "^20.31.2-snapshot.23+b671f4530",
53
+ "@instructure/quiz-rce": "^20.31.2-snapshot.23+b671f4530",
54
54
  "@instructure/ui-a11y-content": "^8.56.3",
55
55
  "@instructure/ui-alerts": "^8.56.3",
56
56
  "@instructure/ui-avatar": "^8.56.3",
@@ -114,7 +114,7 @@
114
114
  "file-saver": "~2.0.5",
115
115
  "humps": "^2.0.0",
116
116
  "immutable": "^3.8.1",
117
- "instructure-validations": "^20.31.2-snapshot.22+0ea974b4c",
117
+ "instructure-validations": "^20.31.2-snapshot.23+b671f4530",
118
118
  "ipaddr.js": "^1.5.4",
119
119
  "isomorphic-fetch": "^2.2.0",
120
120
  "isuuid": "^0.1.0",
@@ -163,7 +163,7 @@
163
163
  "jquery": "^2.2.3",
164
164
  "karma-junit-reporter": "^2.0.1",
165
165
  "most-subject": "^5.3.0",
166
- "quiz-presets": "^20.31.2-snapshot.22+0ea974b4c",
166
+ "quiz-presets": "^20.31.2-snapshot.23+b671f4530",
167
167
  "react": "^16.8.6",
168
168
  "react-addons-test-utils": "^15.6.2",
169
169
  "react-dom": "^16.8.6",
@@ -179,5 +179,5 @@
179
179
  "publishConfig": {
180
180
  "access": "public"
181
181
  },
182
- "gitHead": "0ea974b4cc0200b59fa970a34f8147ed6262ba97"
182
+ "gitHead": "b671f4530b93ebb0970575c2321141af751fcd9a"
183
183
  }