Skip to content

Commit

Permalink
fix: remove ghost article flags view (#1916)
Browse files Browse the repository at this point in the history
  • Loading branch information
parkjh committed May 7, 2019
1 parent c74a09c commit a10cea3
Show file tree
Hide file tree
Showing 19 changed files with 1,663 additions and 2,718 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ exports[`2. multiple article flags 1`] = `
Object {
"flexDirection": "row",
"flexWrap": "wrap",
"marginBottom": 10,
}
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ exports[`2. multiple article flags 1`] = `
Object {
"flexDirection": "row",
"flexWrap": "wrap",
"marginBottom": 10,
}
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ exports[`2. multiple article flags 1`] = `
-webkit-box-align: stretch;
align-items: stretch;
margin-right: 0px;
margin-bottom: 0px;
}
.IS1 {
Expand Down Expand Up @@ -262,6 +261,7 @@ exports[`2. multiple article flags 1`] = `
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-bottom: 10px;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-box-lines: multiple;
Expand Down
3 changes: 2 additions & 1 deletion packages/article-flag/src/style/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const styles = {
},
flags: {
flexDirection: "row",
flexWrap: "wrap"
flexWrap: "wrap",
marginBottom: spacing(2)
},
title: {
...fontFactory({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,20 @@ exports[`1. article summary component with a single paragraph 1`] = `
...
</Text>
</Text>
<View
style={
Object {
"marginBottom": 10,
}
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
>
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
/>
</View>
/>
<Text
style={
Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,20 @@ exports[`1. article summary component with a single paragraph 1`] = `
...
</Text>
</Text>
<View>
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
/>
</View>
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
/>
<Text>
<DatePublication
date="2017-11-17T00:01:00.000Z"
Expand Down Expand Up @@ -586,22 +584,20 @@ exports[`13. article summary component with a strapline 1`] = `
...
</Text>
</Text>
<View>
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
/>
</View>
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
/>
<Text>
<DatePublication
date="2017-11-17T00:01:00.000Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,20 @@ exports[`1. article summary component with a single paragraph 1`] = `
...
</Text>
</Text>
<View
style={
Object {
"marginBottom": 10,
}
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
>
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
/>
</View>
/>
<Text
style={
Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,20 @@ exports[`1. article summary component with a single paragraph 1`] = `
...
</Text>
</Text>
<View>
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
/>
</View>
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
/>
<Text>
<DatePublication
date="2017-11-17T00:01:00.000Z"
Expand Down Expand Up @@ -586,22 +584,20 @@ exports[`13. article summary component with a strapline 1`] = `
...
</Text>
</Text>
<View>
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
/>
</View>
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
/>
<Text>
<DatePublication
date="2017-11-17T00:01:00.000Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ exports[`1. article summary component with a single paragraph 1`] = `
}
.S5 {
margin-bottom: 10px;
}
.S6 {
color: rgba(105,105,105,1.00);
font-family: GillSansMTStd-Medium;
font-size: 13px;
Expand All @@ -50,7 +46,7 @@ exports[`1. article summary component with a single paragraph 1`] = `
margin-bottom: 5px;
}
.S7 {
.S6 {
color: inherit;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
font-size: 14px;
Expand Down Expand Up @@ -89,26 +85,22 @@ exports[`1. article summary component with a single paragraph 1`] = `
...
</span>
</div>
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
/>
<div
className="S5"
>
<ArticleFlags
flags={
Array [
Object {
"expiryTime": "2020-03-13T12:00:00.000Z",
"type": "UPDATED",
},
Object {
"expiryTime": "2019-03-14T12:00:00.000Z",
"type": "EXCLUSIVE",
},
]
}
/>
</div>
<div
className="S6"
data-testid="datePublication"
>
<DatePublication
Expand All @@ -117,7 +109,7 @@ exports[`1. article summary component with a single paragraph 1`] = `
/>
</div>
<div
className="S7"
className="S6"
>
<ArticleByline
ast={
Expand Down
Loading

0 comments on commit a10cea3

Please sign in to comment.