-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(display-heading): Use react-media based responsive component
Also add tests for responsive behaviour
- Loading branch information
1 parent
c2c5b3c
commit 36dbd44
Showing
6 changed files
with
51 additions
and
29 deletions.
There are no files selected for viewing
11 changes: 5 additions & 6 deletions
11
src/components/Typography/DisplayHeading/DisplayHeading.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 31 additions & 12 deletions
43
src/components/Typography/DisplayHeading/__tests__/DisplayHeading.spec.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/components/Typography/Heading/__tests__/__snapshots__/Heading.spec.jsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Heading renders 1`] = ` | ||
<h1 | ||
className="h1Desktop secondary" | ||
<h2 | ||
class="h2Desktop secondary" | ||
> | ||
The content | ||
</h1> | ||
The heading | ||
</h2> | ||
`; |