@@ -59,7 +59,8 @@ interface ViewEventListProps {
59
59
onSelected : ( event : CollectedEvent | undefined ) => void ;
60
60
}
61
61
62
- const ListContainer = styled . div `
62
+ const ListContainer = styled . table `
63
+ display: block;
63
64
flex-grow: 1;
64
65
position: relative;
65
66
width: 100%;
@@ -79,7 +80,8 @@ const ListContainer = styled.div`
79
80
}
80
81
` ;
81
82
82
- const Column = styled . div `
83
+ const Column = styled . td `
84
+ display: block;
83
85
overflow: hidden;
84
86
text-overflow: ellipsis;
85
87
white-space: nowrap;
@@ -134,7 +136,7 @@ const RowMarker = styled(Column)`
134
136
border-left: 5px solid ${ p => p . theme . containerBackground } ;
135
137
` ;
136
138
137
- const MarkerHeader = styled . div `
139
+ const MarkerHeader = styled . td `
138
140
flex-basis: 10px;
139
141
flex-shrink: 0;
140
142
` ;
@@ -221,7 +223,7 @@ const BuiltInApiRequestDetails = styled(Column)`
221
223
flex-basis: 1000px;
222
224
` ;
223
225
224
- const EventListRow = styled . div `
226
+ const EventListRow = styled . tr `
225
227
display: flex;
226
228
flex-direction: row;
227
229
align-items: center;
@@ -287,7 +289,7 @@ const TlsListRow = styled(EventListRow)`
287
289
}
288
290
` ;
289
291
290
- export const TableHeader = styled . header `
292
+ export const TableHeaderRow = styled . tr `
291
293
height: 38px;
292
294
overflow: hidden;
293
295
width: 100%;
@@ -306,7 +308,7 @@ export const TableHeader = styled.header`
306
308
padding-right: 18px;
307
309
box-sizing: border-box;
308
310
309
- > div {
311
+ > td {
310
312
padding: 5px 0;
311
313
margin-right: 10px;
312
314
min-width: 0px;
@@ -397,7 +399,6 @@ const ExchangeRow = inject('uiStore')(observer(({
397
399
} = exchange ;
398
400
399
401
return < TrafficEventListRow
400
- role = "row"
401
402
aria-label = {
402
403
`${ _ . startCase ( exchange . category ) } ${
403
404
request . method
@@ -424,7 +425,7 @@ const ExchangeRow = inject('uiStore')(observer(({
424
425
className = { isSelected ? 'selected' : '' }
425
426
style = { style }
426
427
>
427
- < RowPin pinned = { pinned } />
428
+ < RowPin aria-label = { pinned ? 'Pinned' : undefined } pinned = { pinned } />
428
429
< RowMarker category = { category } title = { describeEventCategory ( category ) } />
429
430
< Method pinned = { pinned } > { request . method } </ Method >
430
431
< Status >
@@ -504,7 +505,6 @@ const RTCConnectionRow = observer(({
504
505
const { category, pinned } = event ;
505
506
506
507
return < TrafficEventListRow
507
- role = "row"
508
508
aria-label = {
509
509
`${
510
510
event . closeState ? 'Closed' : 'Open'
@@ -558,7 +558,6 @@ const RTCStreamRow = observer(({
558
558
const { category, pinned } = event ;
559
559
560
560
return < TrafficEventListRow
561
- role = "row"
562
561
aria-label = {
563
562
`${
564
563
event . closeState ? 'Closed' : 'Open'
@@ -659,7 +658,6 @@ const BuiltInApiRow = observer((p: {
659
658
. join ( ', ' ) ;
660
659
661
660
return < TrafficEventListRow
662
- role = "row"
663
661
aria-label = {
664
662
`${ _ . startCase ( category ) } ${
665
663
api . service . shortName
@@ -719,7 +717,6 @@ const TlsRow = observer((p: {
719
717
const connectionTarget = tlsEvent . upstreamHostname || 'unknown domain' ;
720
718
721
719
return < TlsListRow
722
- role = "row"
723
720
aria-label = { `${ description } connection to ${ connectionTarget } ` }
724
721
aria-rowindex = { p . index + 1 }
725
722
data-event-id = { tlsEvent . id }
@@ -761,7 +758,7 @@ export class ViewEventList extends React.Component<ViewEventListProps> {
761
758
762
759
private KeyBoundListWindow = observer (
763
760
React . forwardRef < HTMLDivElement > (
764
- ( props : any , ref ) => < section
761
+ ( props : any , ref ) => < div
765
762
{ ...props }
766
763
style = { Object . assign ( { } , props . style , { 'overflowY' : 'scroll' } ) }
767
764
ref = { ref }
@@ -778,14 +775,14 @@ export class ViewEventList extends React.Component<ViewEventListProps> {
778
775
const { events, filteredEvents, isPaused } = this . props ;
779
776
780
777
return < ListContainer >
781
- < TableHeader >
782
- < MarkerHeader />
783
- < Method > Method</ Method >
784
- < Status > Status</ Status >
785
- < Source > Source</ Source >
786
- < Host > Host</ Host >
787
- < PathAndQuery > Path and query</ PathAndQuery >
788
- </ TableHeader >
778
+ < TableHeaderRow >
779
+ < MarkerHeader role = "columnheader" aria-label = "Category" />
780
+ < Method role = "columnheader" > Method</ Method >
781
+ < Status role = "columnheader" > Status</ Status >
782
+ < Source role = "columnheader" > Source</ Source >
783
+ < Host role = "columnheader" > Host</ Host >
784
+ < PathAndQuery role = "columnheader" > Path and query</ PathAndQuery >
785
+ </ TableHeaderRow >
789
786
790
787
{
791
788
events . length === 0
0 commit comments