Skip to content

Commit

Permalink
Merge pull request #4 from arnog/master
Browse files Browse the repository at this point in the history
Fixes #3: make modal dialogs accessible
  • Loading branch information
arnog authored May 15, 2019
2 parents b58e1dd + 885bc25 commit 6264cc9
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 9 deletions.
52 changes: 52 additions & 0 deletions Untitled.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"7"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"2 + 5"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
13 changes: 4 additions & 9 deletions jupyterlab/staging/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1995,10 +1995,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=

commander@2, commander@^2.10.0, commander@^2.19.0, commander@^2.5.0:
version "2.20.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422"
integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==
commander@2, commander@^2.10.0, commander@^2.19.0, commander@^2.5.0, commander@~2.19.0:
version "2.19.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a"
integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==

[email protected]:
version "2.17.1"
Expand All @@ -2010,11 +2010,6 @@ commander@~2.18.0:
resolved "https://registry.yarnpkg.com/commander/-/commander-2.18.0.tgz#2bf063ddee7c7891176981a2cc798e5754bc6970"
integrity sha512-6CYPa+JP2ftfRU2qkDK+UTVeQYosOg/2GbcjIcKPHfinyOLPVGXu/ovN86RP49Re5ndJK1N0kuiidFFuepc4ZQ==

commander@~2.19.0:
version "2.19.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a"
integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==

comment-json@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/comment-json/-/comment-json-1.1.3.tgz#6986c3330fee0c4c9e00c2398cd61afa5d8f239e"
Expand Down
2 changes: 2 additions & 0 deletions packages/apputils/src/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export class Dialog<T> extends Widget {
constructor(options: Partial<Dialog.IOptions<T>> = {}) {
super();
this.addClass('jp-Dialog');
this.node.setAttribute('aria-modal', 'true');
this.node.setAttribute('role', 'dialog');
let normalized = Private.handleOptions(options);
let renderer = normalized.renderer;

Expand Down

0 comments on commit 6264cc9

Please sign in to comment.