Skip to content

Commit

Permalink
Merge pull request #960 from hmrc/SDT-959_messages_layout
Browse files Browse the repository at this point in the history
Sdt 959 Messages pattern not spanning full width
  • Loading branch information
Steven Proctor authored May 25, 2018
2 parents 356ec8b + 357d727 commit 53baa25
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Added the `mailto:` scheme to the email link on the design-system *About* page. [951](https://github.com/hmrc/assets-frontend/pull/951)
- Fixed the `sign-out` link on the *Help users when we sign them out...* page examples [953](https://github.com/hmrc/assets-frontend/pull/953)
- Fixed a couple of typos on the _opens in a new window or tab_ page [954](https://github.com/hmrc/assets-frontend/pull/954)
- Fixed table layout issue on messages pattern full width [959](https://github.com/hmrc/assets-frontend/pull/959)

### Changed
- Moved the header pattern to patterns and updated documentation [944](https://github.com/hmrc/assets-frontend/pull/944)
- `node-git-versioning` plugin has been published to npm so we can depend on that version [#946](https://github.com/hmrc/assets-frontend/pull/946)
Expand Down
8 changes: 6 additions & 2 deletions assets/patterns/messages/_messages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
border-top: 1px solid #a1acb2;

.message-inbox__list-item {
display: table-row;
font-weight: bold;
a:link{
text-decoration: none;
}
&.message-inbox__list-item--read {
&--read {
background-color: #f8f8f8;
font-weight: normal;
}
Expand All @@ -18,8 +19,11 @@
display: table-cell;
padding: 20px 10px;
border-bottom: 1px solid #a1acb2;
&.no-wrap {
&:last-child {
white-space: nowrap;
text-align: right;
}
}
}


6 changes: 3 additions & 3 deletions assets/patterns/messages/messages-read.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ <h2 class="heading-medium">Messages</h2>
<div class="message-inbox__list" role="list">
<div class="message-inbox__list-item message-inbox__list-item--read" role="listitem"><span
class="visually-hidden">read</span> <a class="message-inbox__block" href="/">Pub Moon under the water 5 - 7a Temple Place, Brighton BN3 7JB - Client: Mr A Client</a>
<span class="message-inbox__block no-wrap">29 March 2018</span>
<span class="message-inbox__block">29 March 2018</span>
</div>
<div class="message-inbox__list-item message-inbox__list-item--read" role="listitem"><span
class="visually-hidden">read</span> <a class="message-inbox__block" href="/">Pub Moon under the water 5 - 7a Temple Place, Brighton BN3 7JB - Client: Mr A Client</a>
<span class="message-inbox__block no-wrap">24 February 2018</span>
<span class="message-inbox__block">24 February 2018</span>
</div>
<div class="message-inbox__list-item message-inbox__list-item--read" role="listitem"><span
class="visually-hidden">read</span> <a class="message-inbox__block" href="/">Pub Moon under the water 5 - 7a Temple Place, Brighton BN3 7JB - Client: Mr A Client</a>
<span class="message-inbox__block no-wrap">4 January 2018</span>
<span class="message-inbox__block">4 January 2018</span>
</div>
</div>
</div>

0 comments on commit 53baa25

Please sign in to comment.