File tree Expand file tree Collapse file tree 6 files changed +7
-13
lines changed
src/webview/ui/components
FeedbackSection/NotSolvedMessage
FeedbackSection/__snapshots__
GuidedAnswerNode/__snapshots__ Expand file tree Collapse file tree 6 files changed +7
-13
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @sap/guided-answers-extension-webapp ' : patch
3
+ ---
4
+
5
+ Fix code smells in webapp
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export default function NotSolvedMessage(): ReactElement {
35
35
isCircularNavigation = { true } >
36
36
{ options . map ( ( btn ) => (
37
37
< div className = "guided-answer__node" key = { btn . link } >
38
- < a className = "guided-answer__node__edge not-solved-link" href = { btn . link } role = "button" >
38
+ < a className = "guided-answer__node__edge not-solved-link" href = { btn . link } >
39
39
{ i18next . t ( btn . text ) }
40
40
</ a >
41
41
</ div >
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ export function GuidedAnswerNavPath(): ReactElement {
28
28
< nav className = "container" >
29
29
< FocusZone
30
30
direction = { FocusZoneDirection . vertical }
31
- role = "tree"
32
31
onFocus = { ( ) => {
33
32
if ( firstTimeFocus ) {
34
33
focusOnElement ( '.timeline-content' ) ;
@@ -38,7 +37,7 @@ export function GuidedAnswerNavPath(): ReactElement {
38
37
isCircularNavigation = { true } >
39
38
{ nodes . map ( ( node , i ) => {
40
39
return (
41
- < div key = { `timeline-block-${ node . TITLE } ` } className = "timeline-block" role = "treeitem" >
40
+ < div key = { `timeline-block-${ node . TITLE } ` } className = "timeline-block" >
42
41
< button
43
42
id = "timeline-content"
44
43
className = { `timeline-content ${ i === lastIndex ? lastBlockBorderStyle : '' } ` }
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ exports[`<NotSolvedMessage/> Should render a NotSolvedMessage component 1`] = `
39
39
<a
40
40
class = " guided-answer__node__edge not-solved-link"
41
41
href = " https://launchpad.support.sap.com/#/expertchat/create"
42
- role = " button"
43
42
tabindex = " 0"
44
43
>
45
44
Start an Expert Chat
@@ -51,7 +50,6 @@ exports[`<NotSolvedMessage/> Should render a NotSolvedMessage component 1`] = `
51
50
<a
52
51
class = " guided-answer__node__edge not-solved-link"
53
52
href = " https://launchpad.support.sap.com/#/sae"
54
- role = " button"
55
53
tabindex = " -1"
56
54
>
57
55
Schedule an Expert
@@ -63,7 +61,6 @@ exports[`<NotSolvedMessage/> Should render a NotSolvedMessage component 1`] = `
63
61
<a
64
62
class = " guided-answer__node__edge not-solved-link"
65
63
href = " https://launchpad.support.sap.com/#/incident/create"
66
- role = " button"
67
64
tabindex = " -1"
68
65
>
69
66
Open an Incident
@@ -75,7 +72,6 @@ exports[`<NotSolvedMessage/> Should render a NotSolvedMessage component 1`] = `
75
72
<a
76
73
class = " guided-answer__node__edge not-solved-link"
77
74
href = " https://answers.sap.com/index.html"
78
- role = " button"
79
75
tabindex = " -1"
80
76
>
81
77
Ask the SAP Community
Original file line number Diff line number Diff line change @@ -173,7 +173,6 @@ exports[`<Middle /> Should render a Middle component with NotSolvedMessage 1`] =
173
173
<a
174
174
class = " guided-answer__node__edge not-solved-link"
175
175
href = " https://launchpad.support.sap.com/#/expertchat/create"
176
- role = " button"
177
176
tabindex = " 0"
178
177
>
179
178
Start an Expert Chat
@@ -185,7 +184,6 @@ exports[`<Middle /> Should render a Middle component with NotSolvedMessage 1`] =
185
184
<a
186
185
class = " guided-answer__node__edge not-solved-link"
187
186
href = " https://launchpad.support.sap.com/#/sae"
188
- role = " button"
189
187
tabindex = " -1"
190
188
>
191
189
Schedule an Expert
@@ -197,7 +195,6 @@ exports[`<Middle /> Should render a Middle component with NotSolvedMessage 1`] =
197
195
<a
198
196
class = " guided-answer__node__edge not-solved-link"
199
197
href = " https://launchpad.support.sap.com/#/incident/create"
200
- role = " button"
201
198
tabindex = " -1"
202
199
>
203
200
Open an Incident
@@ -209,7 +206,6 @@ exports[`<Middle /> Should render a Middle component with NotSolvedMessage 1`] =
209
206
<a
210
207
class = " guided-answer__node__edge not-solved-link"
211
208
href = " https://answers.sap.com/index.html"
212
- role = " button"
213
209
tabindex = " -1"
214
210
>
215
211
Ask the SAP Community
Original file line number Diff line number Diff line change @@ -8,11 +8,9 @@ exports[`<GuidedAnswerNavPath /> Should render a GuidedAnswerNavPath component 1
8
8
<div
9
9
class = " ms-FocusZone css-101"
10
10
data-focuszone-id = " FocusZone0"
11
- role = " tree"
12
11
>
13
12
<div
14
13
class = " timeline-block"
15
- role = " treeitem"
16
14
>
17
15
<button
18
16
class = " timeline-content timeline-content-bottom-border"
You can’t perform that action at this time.
0 commit comments