about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/components/dropdown_menu.js
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-01-25 10:17:13 +0100
committerThibaut Girka <thib@sitedethib.com>2020-01-25 10:17:13 +0100
commit1f8563c256a05439f47780857fc0cbc736c30670 (patch)
tree1407b610c6d2e719da30695ebed2aa28ecce2952 /app/javascript/flavours/glitch/components/dropdown_menu.js
parent05351cbffba260816ddaa5ac3715e3831f0f1706 (diff)
Rename DropdownMenu's ariaLabel to title, to reduce unnecessary changes with upstream
Diffstat (limited to 'app/javascript/flavours/glitch/components/dropdown_menu.js')
-rw-r--r--app/javascript/flavours/glitch/components/dropdown_menu.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/components/dropdown_menu.js b/app/javascript/flavours/glitch/components/dropdown_menu.js
index ab5b7a572..cc4d714e8 100644
--- a/app/javascript/flavours/glitch/components/dropdown_menu.js
+++ b/app/javascript/flavours/glitch/components/dropdown_menu.js
@@ -184,7 +184,7 @@ export default class Dropdown extends React.PureComponent {
     icon: PropTypes.string.isRequired,
     items: PropTypes.array.isRequired,
     size: PropTypes.number.isRequired,
-    ariaLabel: PropTypes.string,
+    title: PropTypes.string,
     disabled: PropTypes.bool,
     status: ImmutablePropTypes.map,
     isUserTouching: PropTypes.func,
@@ -197,7 +197,7 @@ export default class Dropdown extends React.PureComponent {
   };
 
   static defaultProps = {
-    ariaLabel: 'Menu',
+    title: 'Menu',
   };
 
   state = {
@@ -277,14 +277,14 @@ export default class Dropdown extends React.PureComponent {
   }
 
   render () {
-    const { icon, items, size, ariaLabel, disabled, dropdownPlacement, openDropdownId, openedViaKeyboard } = this.props;
+    const { icon, items, size, title, disabled, dropdownPlacement, openDropdownId, openedViaKeyboard } = this.props;
     const open = this.state.id === openDropdownId;
 
     return (
       <div>
         <IconButton
           icon={icon}
-          title={ariaLabel}
+          title={title}
           active={open}
           disabled={disabled}
           size={size}