diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-08-28 12:01:04 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-08-31 19:49:29 +0200 |
commit | d8fbd74c47de3148d6693b5cb15e7e868f72448e (patch) | |
tree | 2a0548edd7d470487798b4d3c0286579882e75ed /app/javascript/flavours/glitch/features/drawer | |
parent | c6942a528332e99b605efa95ffa1c710324d368c (diff) |
[Glitch] Add aria-label to column regions
Port 66dbb59aa16981643e3bfa3f94d441bc3166eab3 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/features/drawer')
-rw-r--r-- | app/javascript/flavours/glitch/features/drawer/index.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/drawer/index.js b/app/javascript/flavours/glitch/features/drawer/index.js index 4649e404f..497b7d0e4 100644 --- a/app/javascript/flavours/glitch/features/drawer/index.js +++ b/app/javascript/flavours/glitch/features/drawer/index.js @@ -2,6 +2,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; +import { defineMessages } from 'react-intl'; import classNames from 'classnames'; // Actions. @@ -25,6 +26,11 @@ import DrawerSearch from './search'; import { me } from 'flavours/glitch/util/initial_state'; import { wrap } from 'flavours/glitch/util/redux_helpers'; +// Messages. +const messages = defineMessages({ + compose: { id: 'navigation_bar.compose', defaultMessage: 'Compose new toot' }, +}); + // State mapping. const mapStateToProps = state => ({ account: state.getIn(['accounts', me]), @@ -92,7 +98,7 @@ class Drawer extends React.Component { // The result. return ( - <div className={computedClass}> + <div className={computedClass} role='region' aria-label={intl.formatMessage(messages.compose)}> {multiColumn ? ( <DrawerHeader columns={columns} |