Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Merge branch 'latest' into remove-code-owners
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hinds authored May 17, 2019
2 parents 8c0a04d + 3fe3feb commit 7e5c4c2
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env groovy

def dockerRegistry = "329802642264.dkr.ecr.eu-west-1.amazonaws.com"
def nodeImageVersion = "0.0.1"
def nodeImageVersion = "0.0.2"
def nodeImage = "${dockerRegistry}/bbc-news/node-10-lts:${nodeImageVersion}"

def nodeName
Expand Down
1 change: 1 addition & 0 deletions packages/components/psammead-caption/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 1.1.5 | [PR#524](https://github.com/bbc/psammead/pull/524) Add spacing for nested paragraph |
| 1.1.4 | [PR#515](https://github.com/bbc/psammead/pull/515) Update story to use dirDecorator |
| 1.1.3 | [PR#491](https://github.com/bbc/psammead/pull/491) Remove bottom padding from paragraphs within Caption |
| 1.1.2 | [PR#498](https://github.com/bbc/psammead/pull/498) Update stories to use new input provider |
Expand Down
2 changes: 1 addition & 1 deletion packages/components/psammead-caption/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/components/psammead-caption/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-caption",
"version": "1.1.4",
"version": "1.1.5",
"main": "dist/index.js",
"description": "React styled components for a Caption",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ exports[`Caption should render with some offscreen text 1`] = `
width: 100%;
}
.c0 > p {
padding-bottom: 1.5rem;
margin: 0;
}
.c0 > p:last-child {
padding-bottom: 0;
}
Expand Down Expand Up @@ -90,6 +95,11 @@ exports[`Caption should render with some offscreen text and arabic script typogr
width: 100%;
}
.c0 > p {
padding-bottom: 1.5rem;
margin: 0;
}
.c0 > p:last-child {
padding-bottom: 0;
}
Expand Down
5 changes: 5 additions & 0 deletions packages/components/psammead-caption/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import styled, { css } from 'styled-components';
import { shape } from 'prop-types';
import {
GEL_SPACING,
GEL_SPACING_TRPL,
GEL_MARGIN_ABOVE_400PX,
GEL_MARGIN_BELOW_400PX,
} from '@bbc/gel-foundations/spacings';
Expand Down Expand Up @@ -36,6 +37,10 @@ const Caption = styled.figcaption`
@media (min-width: ${GEL_GROUP_4_SCREEN_WIDTH_MIN}) {
padding: ${GEL_SPACING} 0 0;
}
& > p {
padding-bottom: ${GEL_SPACING_TRPL};
margin: 0; /* reset */
}
& > p:last-child {
padding-bottom: 0;
}
Expand Down
7 changes: 3 additions & 4 deletions packages/components/psammead-caption/src/index.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { storiesOf } from '@storybook/react';
import { withKnobs } from '@storybook/addon-knobs';
import { inputProvider, dirDecorator } from '@bbc/psammead-storybook-helpers';
import InlineLink from '@bbc/psammead-inline-link';
import Paragraph from '@bbc/psammead-paragraph';
import VisuallyHiddenText from '@bbc/psammead-visually-hidden-text';
import notes from '../README.md';
import Caption from '.';
Expand Down Expand Up @@ -66,10 +65,10 @@ storiesOf('Caption', module)
'containing multiple paragraphs',
inputProvider([], (inputs, script) => (
<Caption script={script}>
<Paragraph>Paragraph with padding bottom.</Paragraph>
<Paragraph>
<p>Paragraph with padding bottom.</p>
<p>
Last paragraph - <i>without padding bottom</i>.
</Paragraph>
</p>
</Caption>
)),
{ notes, knobs: { escapeHTML: false } },
Expand Down

0 comments on commit 7e5c4c2

Please sign in to comment.