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

Commit

Permalink
Merge pull request #2889 from bbc/shrink-brand-before-wrap
Browse files Browse the repository at this point in the history
Shrink brand before wrap
  • Loading branch information
tochwill authored Jan 16, 2020
2 parents 48287c0 + e00ba1c commit 2bff091
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/components/psammead-brand/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
| ------- | ----------- |
| 5.1.3 | [PR#2889](https://github.com/bbc/psammead/pull/2889) Shrink brand svg before wrapping the script link |
| 5.1.2 | [PR#2928](https://github.com/bbc/psammead/pull/2928) Talos - Bump Dependencies - @bbc/psammead-script-link |
| 5.1.1 | [PR#2920](https://github.com/bbc/psammead/pull/2920) Talos - Bump Dependencies - @bbc/gel-foundations, @bbc/psammead-script-link |
| 5.1.0 | [PR#2917](https://github.com/bbc/psammead/pull/2917) Remove alpha tag from Brand component |
Expand Down
2 changes: 1 addition & 1 deletion packages/components/psammead-brand/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-brand/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-brand",
"version": "5.1.2",
"version": "5.1.3",
"main": "dist/index.js",
"module": "esm/index.js",
"sideEffects": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ exports[`Brand should render correctly with link not provided 1`] = `
width: 100%;
max-width: 17.5rem;
min-width: 11.25rem;
-webkit-flex: 1 1 11.25rem;
-ms-flex: 1 1 11.25rem;
flex: 1 1 11.25rem;
-ms-flex-preferred-size: 17.5rem;
}
.c4:hover .c2,
Expand Down Expand Up @@ -178,6 +182,10 @@ exports[`Brand should render correctly with link provided 1`] = `
width: 100%;
max-width: 17.5rem;
min-width: 11.25rem;
-webkit-flex: 1 1 11.25rem;
-ms-flex: 1 1 11.25rem;
flex: 1 1 11.25rem;
-ms-flex-preferred-size: 17.5rem;
}
.c4 {
Expand All @@ -190,6 +198,10 @@ exports[`Brand should render correctly with link provided 1`] = `
width: 100%;
max-width: 17.5rem;
min-width: 11.25rem;
-webkit-flex: 1 1 11.25rem;
-ms-flex: 1 1 11.25rem;
flex: 1 1 11.25rem;
-ms-flex-preferred-size: 17.5rem;
}
.c2:hover .c4,
Expand Down Expand Up @@ -333,6 +345,10 @@ exports[`Brand should render correctly with no service Localised Name 1`] = `
width: 100%;
max-width: 17.5rem;
min-width: 11.25rem;
-webkit-flex: 1 1 11.25rem;
-ms-flex: 1 1 11.25rem;
flex: 1 1 11.25rem;
-ms-flex-preferred-size: 17.5rem;
}
.c4:hover .c2,
Expand Down Expand Up @@ -460,6 +476,10 @@ exports[`Brand should render correctly with transparent borders 1`] = `
width: 100%;
max-width: 17.5rem;
min-width: 11.25rem;
-webkit-flex: 1 1 11.25rem;
-ms-flex: 1 1 11.25rem;
flex: 1 1 11.25rem;
-ms-flex-preferred-size: 17.5rem;
}
.c4:hover .c2,
Expand Down
2 changes: 2 additions & 0 deletions packages/components/psammead-brand/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ const brandWidth = (minWidth, maxWidth) => `
width: 100%;
max-width: ${maxWidth / 16}rem;
min-width: ${minWidth / 16}rem;
flex: 1 1 ${minWidth / 16}rem;
-ms-flex-preferred-size: ${maxWidth / 16}rem;
`;

const StyledLink = styled.a`
Expand Down

0 comments on commit 2bff091

Please sign in to comment.