Skip to content

Commit d06afe5

Browse files
authored
Don't set font-size, use ems consistently (#377)
1 parent ffb7b3e commit d06afe5

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
- Make keyword spacing look right ([#376](https://github.com/cucumber/react-components/pull/376))
1111

1212
### Changed
13+
- Inherit font-size instead of setting at 14px ([#377](https://github.com/cucumber/react-components/pull/377))
1314
- BREAKING CHANGE: Remove props from `<StatusesSummary/>`, `<ExecutionSummary/>` and `<SearchBar/>` components, use contexts for state ([#374](https://github.com/cucumber/react-components/pull/374))
1415

1516
### Removed

src/components/CucumberReact.module.scss

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@import '../styles/theming';
22

33
.cucumberReact {
4-
font-size: 14px;
54
font-family: $sansFamily;
65
color: $textColor;
76
background: $backgroundColor;
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.example {
2-
margin-left: 1rem;
2+
margin-left: 1em;
33
}

src/components/gherkin/StepItem.module.scss

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ $statusWidth: 1.5em;
77

88
.status {
99
width: $statusWidth;
10-
padding-top: 0.1em;
1110
}
1211

1312
.content {

src/components/gherkin/Title.module.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
h1.title,
99
h2.title {
10-
font-size: 1.5em;
10+
font-size: 1.25em;
1111
}
1212

1313
h3.title,
1414
h4.title {
15-
font-size: 1.125em;
15+
font-size: 1em;
1616
}

0 commit comments

Comments
 (0)