Skip to content

Commit ab6aaa4

Browse files
committed
Merge pull request #3296 from r0hit-gupta/heading-fix
Issue #3245 | Add H1 heading
1 parent 2ed1978 commit ab6aaa4

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

__tests__/shared/components/challenge-listing/Filters/FiltersCardsType.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ class Wrapper extends React.Component {
2727
test('handle events', () => {
2828
const instance = TU.renderIntoDocument((<Wrapper />));
2929
const matches = TU.scryRenderedDOMComponentsWithTag(instance, 'a');
30-
expect(matches).toHaveLength(2);
30+
expect(matches).toHaveLength(1);
3131
TU.Simulate.click(matches[0]);
3232
});

__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersCardsType.jsx.snap

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ exports[`Matches shallow shapshot 1`] = `
44
<div
55
className="src-shared-components-challenge-listing-Filters-FiltersCardsType-___style__cards-type-col___39JxY"
66
>
7-
<a
7+
<h1
88
className=""
9-
onClick={[Function]}
10-
onKeyPress={[Function]}
119
>
1210
Challenges
13-
</a>
11+
</h1>
1412
<a
1513
href="https://arena.topcoder-dev.com"
1614
rel="noopener noreferrer"
@@ -25,13 +23,11 @@ exports[`Matches shallow shapshot 2`] = `
2523
<div
2624
className="src-shared-components-challenge-listing-Filters-FiltersCardsType-___style__cards-type-col___39JxY"
2725
>
28-
<a
26+
<h1
2927
className=""
30-
onClick={[Function]}
31-
onKeyPress={[Function]}
3228
>
3329
Challenges
34-
</a>
30+
</h1>
3531
<a
3632
href="https://arena.topcoder-dev.com"
3733
rel="noopener noreferrer"

src/shared/components/challenge-listing/Filters/FiltersCardsType/index.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ import './style.scss';
1313

1414
const FiltersCardsType = ({ hideSrm, isCardTypeSet }) => (
1515
<div styleName="cards-type-col">
16-
<a
16+
<h1
1717
styleName={`${isCardTypeSet === 'Challenges' ? 'active' : ''}`}
18-
onClick={e => e.preventDefault()}
19-
onKeyPress={e => e.preventDefault()}
2018
>
2119
Challenges
22-
</a>
20+
</h1>
2321
{
2422
hideSrm ? null : (
2523
<a

src/shared/components/challenge-listing/Filters/FiltersCardsType/style.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ $type-radius-4: $corner-radius * 2;
1010
vertical-align: middle;
1111
font-size: 0;
1212

13-
> a {
13+
> a,
14+
h1 {
1415
@include roboto-regular;
1516

1617
height: $type-space-60;

0 commit comments

Comments
 (0)