From e6aa4111dd11a62460dfba20752d80d96be0f958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=20Polykanine=20A=2EK=2EA=2E=20Menelion=20Elens=C3=BA?= =?UTF-8?q?l=C3=AB?= Date: Sun, 13 May 2018 01:49:13 +0300 Subject: [PATCH 1/2] Add basic ARIA mark-up --- web/app/components/auth-panel/auth-panel.jsx | 4 +++- web/app/components/comment/comment.jsx | 13 ++++++++++++- web/app/components/input/input.jsx | 4 ++-- web/app/components/root/root.jsx | 6 +++--- web/app/components/thread/thread.jsx | 2 +- 5 files changed, 21 insertions(+), 8 deletions(-) diff --git a/web/app/components/auth-panel/auth-panel.jsx b/web/app/components/auth-panel/auth-panel.jsx index 20859d48..f39030b2 100644 --- a/web/app/components/auth-panel/auth-panel.jsx +++ b/web/app/components/auth-panel/auth-panel.jsx @@ -46,7 +46,7 @@ export default class AuthPanel extends Component { {user.name} {isUserIdVisible && ({user.id})}. {' '} - Sign out? + Sign out? ) } @@ -65,6 +65,7 @@ export default class AuthPanel extends Component { {comma} props.onSignIn(provider)} >{PROVIDER_NAMES[provider]} @@ -81,6 +82,7 @@ export default class AuthPanel extends Component { user.admin && ( {isBlockedVisible ? 'Hide' : 'Show'} blocked ) diff --git a/web/app/components/comment/comment.jsx b/web/app/components/comment/comment.jsx index 180d7dd6..15e8130b 100644 --- a/web/app/components/comment/comment.jsx +++ b/web/app/components/comment/comment.jsx @@ -237,7 +237,7 @@ export default class Comment extends Component { if (mods.view === 'preview') { return ( -
+
{o.user.name} @@ -279,6 +279,7 @@ export default class Comment extends Component { ) @@ -299,6 +300,8 @@ export default class Comment extends Component { Vote up @@ -310,6 +313,8 @@ export default class Comment extends Component { Vote down @@ -326,6 +331,7 @@ export default class Comment extends Component { !mods.disabled && !isGuest && ( {isInputVisible ? 'Cancel' : 'Reply'} @@ -340,6 +346,7 @@ export default class Comment extends Component { !pinned && ( Pin @@ -350,6 +357,7 @@ export default class Comment extends Component { pinned && ( Unpin @@ -360,6 +368,7 @@ export default class Comment extends Component { userBlocked && ( Unblock @@ -370,6 +379,7 @@ export default class Comment extends Component { !userBlocked && ( Block @@ -380,6 +390,7 @@ export default class Comment extends Component { !deleted && ( Delete diff --git a/web/app/components/input/input.jsx b/web/app/components/input/input.jsx index 32b663dc..3d37e897 100644 --- a/web/app/components/input/input.jsx +++ b/web/app/components/input/input.jsx @@ -108,7 +108,7 @@ export default class Input extends Component { const charactersLeft = maxLength - commentLength; return ( -
+