Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #222 from barnardos/printing-issues
Browse files Browse the repository at this point in the history
Use system font when printing.
  • Loading branch information
tosbourn authored Feb 13, 2018
2 parents 9763eb0 + c618c5c commit e7d1fe6
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.8.1 / Unreleased

* [BUG] - [Printing occasionally confused letters](https://trello.com/c/tF5zdsHM)

# 0.8.0 / 2018-02-12

* [CHORE] - Add additional PostgreSQL details to README
Expand Down
27 changes: 27 additions & 0 deletions app/assets/stylesheets/print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,30 @@ p {
color: inherit;
text-decoration: none;
}

html {
font-family: Verdana;
font-size: 16px;
}

h1,
.page-heading {
font-size: 42px;
}

h3 {
font-size: 22px;
}

p,
.bullet-point-list > *,
.numbered-list > *,
.definition-list dt,
.definition-list dd {
font-size: 16px;
}

.editable {
background: none;
padding: 0;
}
4 changes: 2 additions & 2 deletions app/javascript/components/TopicPurposePreviews/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("TopicPurposePreviews", () => {

/* I18n labels */
const labels = {
topic: "Barnardo's is doing research to learn about",
topic: "Barnardoʼs is doing research to learn about",
purpose: "so that we can"
};

Expand Down Expand Up @@ -64,7 +64,7 @@ describe("TopicPurposePreviews", () => {

it("renders the topic and purpose in a readable sentence", () => {
expect(topicPurposePreviews().text()).to.contain(
`Barnardo's is doing research to learn about ` +
`Barnardoʼs is doing research to learn about ` +
`${props.topic} so that we can ${props.purpose}`
);
});
Expand Down
4 changes: 2 additions & 2 deletions app/models/shared_with.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class SharedWith
NAME_VALUES = HashWithIndifferentAccess.new(
anonymised: 'anonymised as we process it',
team: 'shared with the research team at Barnardo\'s',
internal: 'shared with other teams in Barnardo\'s',
team: 'shared with the research team at Barnardoʼs',
internal: 'shared with other teams in Barnardoʼs',
external: 'used in external publications'
)

Expand Down
4 changes: 1 addition & 3 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<header role="banner" id="global-header">
<div id="global-header__logo">
<%= image_tag 'barnardos-logo.svg', alt: 'Barnardos logo' %>
<%= image_tag 'barnardos-logo.svg', alt: 'Barnardoʼs logo' %>
</div>
<div id="global-header__menu"></div>
</header>
Expand Down Expand Up @@ -69,5 +69,3 @@

</body>
</html>


2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ en:
researcher_other_name: 'Full name'
researcher_phone: 'Telephone number (optional)'
researcher_email: 'Email'
topic: "Barnardo's is doing research to learn about"
topic: "Barnardoʼs is doing research to learn about"
purpose: 'so that we can'
methodologies: 'How will you be gathering information?'
other_methodology: "What is the other methodology?"
Expand Down
2 changes: 1 addition & 1 deletion features/support/step_completions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def complete_topic_step
Whereas this becomes its own p
TEXT_WITH_DOUBLE_AND_SINGLE_LINEBREAK

fill_in "Barnardo's is doing research to learn about", with: @topic
fill_in 'Barnardoʼs is doing research to learn about', with: @topic

@purpose = <<~TEXT_WITH_DOUBLE_AND_SINGLE_LINEBREAK
PURPOSE: Fresnel lenses and the under-5s
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/barnardos/action_view/form_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def with_stub_routing

it 'labels according to en.yml' do
expect(rendered).to have_tag(
'label', text: "Barnardo's is doing research to learn about"
'label', text: 'Barnardoʼs is doing research to learn about'
)
end

Expand Down

0 comments on commit e7d1fe6

Please sign in to comment.