@@ -21,9 +21,7 @@ const Welcome = () => {
21
21
const [ importCollectionLocationModalOpen , setImportCollectionLocationModalOpen ] = useState ( false ) ;
22
22
23
23
const handleOpenCollection = ( ) => {
24
- dispatch ( openCollection ( ) ) . catch (
25
- ( err ) => console . log ( err ) && toast . error ( t ( 'WELCOME.COLLECTION_OPEN_ERROR' ) )
26
- ) ;
24
+ dispatch ( openCollection ( ) ) . catch ( ( err ) => console . log ( err ) && toast . error ( t ( 'WELCOME.COLLECTION_OPEN_ERROR' ) ) ) ;
27
25
} ;
28
26
29
27
const handleImportCollection = ( { collection, translationLog } ) => {
@@ -64,48 +62,77 @@ const Welcome = () => {
64
62
/>
65
63
) : null }
66
64
67
- < div >
65
+ < div aria-hidden className = "" >
68
66
< Bruno width = { 50 } />
69
67
</ div >
70
68
< div className = "text-xl font-semibold select-none" > bruno</ div >
71
69
< div className = "mt-4" > { t ( 'WELCOME.ABOUT_BRUNO' ) } </ div >
72
70
73
71
< div className = "uppercase font-semibold heading mt-10" > { t ( 'COMMON.COLLECTIONS' ) } </ div >
74
72
< div className = "mt-4 flex items-center collection-options select-none" >
75
- < div className = "flex items-center" onClick = { ( ) => setCreateCollectionModalOpen ( true ) } >
76
- < IconPlus size = { 18 } strokeWidth = { 2 } />
73
+ < button
74
+ className = "flex items-center"
75
+ onClick = { ( ) => setCreateCollectionModalOpen ( true ) }
76
+ aria-label = { t ( 'WELCOME.CREATE_COLLECTION' ) }
77
+ >
78
+ < IconPlus aria-hidden size = { 18 } strokeWidth = { 2 } />
77
79
< span className = "label ml-2" id = "create-collection" >
78
80
{ t ( 'WELCOME.CREATE_COLLECTION' ) }
79
81
</ span >
80
- </ div >
81
- < div className = "flex items-center ml-6" onClick = { handleOpenCollection } >
82
- < IconFolders size = { 18 } strokeWidth = { 2 } />
82
+ </ button >
83
+
84
+ < button className = "flex items-center ml-6" onClick = { handleOpenCollection } aria-label = "Open Collection" >
85
+ < IconFolders aria-hidden size = { 18 } strokeWidth = { 2 } />
83
86
< span className = "label ml-2" > { t ( 'WELCOME.OPEN_COLLECTION' ) } </ span >
84
- </ div >
85
- < div className = "flex items-center ml-6" onClick = { ( ) => setImportCollectionModalOpen ( true ) } >
86
- < IconDownload size = { 18 } strokeWidth = { 2 } />
87
+ </ button >
88
+
89
+ < button
90
+ className = "flex items-center ml-6"
91
+ onClick = { ( ) => setImportCollectionModalOpen ( true ) }
92
+ aria-label = { t ( 'WELCOME.IMPORT_COLLECTION' ) }
93
+ >
94
+ < IconDownload aria-hidden size = { 18 } strokeWidth = { 2 } />
87
95
< span className = "label ml-2" id = "import-collection" >
88
96
{ t ( 'WELCOME.IMPORT_COLLECTION' ) }
89
97
</ span >
90
- </ div >
98
+ </ button >
91
99
</ div >
100
+
92
101
< div className = "uppercase font-semibold heading mt-10 pt-6" > { t ( 'WELCOME.LINKS' ) } </ div >
93
102
< div className = "mt-4 flex flex-col collection-options select-none" >
94
103
< div className = "flex items-center mt-2" >
95
- < a href = "https://docs.usebruno.com" target = "_blank" className = "inline-flex items-center" >
96
- < IconBook size = { 18 } strokeWidth = { 2 } />
104
+ < a
105
+ href = "https://docs.usebruno.com"
106
+ aria-label = "Read documentation"
107
+ target = "_blank"
108
+ rel = "noopener noreferrer"
109
+ className = "inline-flex items-center"
110
+ >
111
+ < IconBook aria-hidden size = { 18 } strokeWidth = { 2 } />
97
112
< span className = "label ml-2" > { t ( 'COMMON.DOCUMENTATION' ) } </ span >
98
113
</ a >
99
114
</ div >
100
115
< div className = "flex items-center mt-2" >
101
- < a href = "https://github.com/usebruno/bruno/issues" target = "_blank" className = "inline-flex items-center" >
102
- < IconSpeakerphone size = { 18 } strokeWidth = { 2 } />
116
+ < a
117
+ href = "https://github.com/usebruno/bruno/issues"
118
+ aria-label = "Report issues on GitHub"
119
+ target = "_blank"
120
+ rel = "noopener noreferrer"
121
+ className = "inline-flex items-center"
122
+ >
123
+ < IconSpeakerphone aria-hidden size = { 18 } strokeWidth = { 2 } />
103
124
< span className = "label ml-2" > { t ( 'COMMON.REPORT_ISSUES' ) } </ span >
104
125
</ a >
105
126
</ div >
106
127
< div className = "flex items-center mt-2" >
107
- < a href = "https://github.com/usebruno/bruno" target = "_blank" className = "flex items-center" >
108
- < IconBrandGithub size = { 18 } strokeWidth = { 2 } />
128
+ < a
129
+ href = "https://github.com/usebruno/bruno"
130
+ aria-label = "Go to GitHub repository"
131
+ target = "_blank"
132
+ rel = "noopener noreferrer"
133
+ className = "flex items-center"
134
+ >
135
+ < IconBrandGithub aria-hidden size = { 18 } strokeWidth = { 2 } />
109
136
< span className = "label ml-2" > { t ( 'COMMON.GITHUB' ) } </ span >
110
137
</ a >
111
138
</ div >
0 commit comments