File tree 4 files changed +9
-14
lines changed
__tests__/shared/components/challenge-listing/Filters
src/shared/components/challenge-listing/Filters/FiltersCardsType 4 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ class Wrapper extends React.Component {
27
27
test ( 'handle events' , ( ) => {
28
28
const instance = TU . renderIntoDocument ( ( < Wrapper /> ) ) ;
29
29
const matches = TU . scryRenderedDOMComponentsWithTag ( instance , 'a' ) ;
30
- expect ( matches ) . toHaveLength ( 2 ) ;
30
+ expect ( matches ) . toHaveLength ( 1 ) ;
31
31
TU . Simulate . click ( matches [ 0 ] ) ;
32
32
} ) ;
Original file line number Diff line number Diff line change @@ -4,13 +4,11 @@ exports[`Matches shallow shapshot 1`] = `
4
4
<div
5
5
className = " src-shared-components-challenge-listing-Filters-FiltersCardsType-___style__cards-type-col___39JxY"
6
6
>
7
- <a
7
+ <h1
8
8
className = " "
9
- onClick = { [Function ]}
10
- onKeyPress = { [Function ]}
11
9
>
12
10
Challenges
13
- </a >
11
+ </h1 >
14
12
<a
15
13
href = " https://arena.topcoder-dev.com"
16
14
rel = " noopener noreferrer"
@@ -25,13 +23,11 @@ exports[`Matches shallow shapshot 2`] = `
25
23
<div
26
24
className = " src-shared-components-challenge-listing-Filters-FiltersCardsType-___style__cards-type-col___39JxY"
27
25
>
28
- <a
26
+ <h1
29
27
className = " "
30
- onClick = { [Function ]}
31
- onKeyPress = { [Function ]}
32
28
>
33
29
Challenges
34
- </a >
30
+ </h1 >
35
31
<a
36
32
href = " https://arena.topcoder-dev.com"
37
33
rel = " noopener noreferrer"
Original file line number Diff line number Diff line change @@ -13,13 +13,11 @@ import './style.scss';
13
13
14
14
const FiltersCardsType = ( { hideSrm, isCardTypeSet } ) => (
15
15
< div styleName = "cards-type-col" >
16
- < a
16
+ < h1
17
17
styleName = { `${ isCardTypeSet === 'Challenges' ? 'active' : '' } ` }
18
- onClick = { e => e . preventDefault ( ) }
19
- onKeyPress = { e => e . preventDefault ( ) }
20
18
>
21
19
Challenges
22
- </ a >
20
+ </ h1 >
23
21
{
24
22
hideSrm ? null : (
25
23
< a
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ $type-radius-4: $corner-radius * 2;
10
10
vertical-align : middle ;
11
11
font-size : 0 ;
12
12
13
- > a {
13
+ > a ,
14
+ h1 {
14
15
@include roboto-regular ;
15
16
16
17
height : $type-space-60 ;
You can’t perform that action at this time.
0 commit comments