@samitouri / QOS-React / commits / 75a4312d87

Add missing Button titles

Dan Abramov committed Apr 10, 2019 at 14:40 UTC 75a4312d87df15e0c8176a47d553c29ba6d6d534
4 files changed +5 -2
src/devtools/views/Button.js
+1
@@ -6,6 +6,7 @@ import styles from './Button.css';
6
7 type Props = {
8 className?: string,
9 + title: string,
10 };
11
12 export default function Button({ className, ...rest }: Props) {
src/devtools/views/Components/HooksTree.js
+1 -1
@@ -31,7 +31,7 @@ export function HooksTreeView({ canEditHooks, hooks, id }: HooksTreeViewProps) {
31 <div className={styles.HooksTreeView}>
32 <div className={styles.HeaderRow}>
33 <div className={styles.Header}>hooks</div>
34 - <Button onClick={handleCopy}>
34 + <Button onClick={handleCopy} title="Copy to clipboard">
35 <ButtonIcon type="copy" />
36 </Button>
37 </div>
src/devtools/views/Components/InspectedElementTree.js
+1 -1
@@ -38,7 +38,7 @@ export default function InspectedElementTree({
38 <div className={styles.HeaderRow}>
39 <div className={styles.Header}>{label}</div>
40 {!isEmpty && (
41 - <Button onClick={handleCopy}>
41 + <Button onClick={handleCopy} title="Copy to clipboard">
42 <ButtonIcon type="copy" />
43 </Button>
44 )}
src/devtools/views/Profiler/SnapshotSelector.js
+2
@@ -123,6 +123,7 @@ export default function SnapshotSelector(_: Props) {
123 className={styles.Button}
124 disabled={selectedFilteredCommitIndex === 0 || numFilteredCommits === 0}
125 onClick={viewPrevCommit}
126 + title="Select previous commit"
127 >
128 <ButtonIcon type="previous" />
129 </Button>
@@ -159,6 +160,7 @@ export default function SnapshotSelector(_: Props) {
160 selectedFilteredCommitIndex >= numFilteredCommits - 1
161 }
162 onClick={viewNextCommit}
163 + title="Select next commit"
164 >
165 <ButtonIcon type="next" />
166 </Button>