Skip to content

Commit

Permalink
Merge pull request #128 from hmcts/DIV-3893_use_govuk_frontend
Browse files Browse the repository at this point in the history
fix progress list styles and add textarea bold option
  • Loading branch information
dtaylor7 authored Jun 11, 2019
2 parents 98e21d1 + ae00ce0 commit c016cba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion assets/scss/look-and-feel/progress-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@ $module: "progress";
.#{$module} {
overflow: hidden;
position: relative;
@include govuk-responsive-margin(3, "bottom");

&:before {
background-color: govuk-colour("green");
content: "";
height: 6px;
position: absolute;
top: 19px; left: 0;
top: 13px; left: 0;
width: 100%;
}

&__list {
margin: 0;
padding: 0;
font-size: .1px; // hide whitespace between elements
position: relative;
text-align: justify;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hmcts/look-and-feel",
"description": "One question per page apps made easy",
"version": "3.0.1",
"version": "3.0.2",
"main": "./src/main.js",
"dependencies": {
"babel-core": "^6.26.0",
Expand Down
8 changes: 4 additions & 4 deletions templates/look-and-feel/components/fields.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
Renders a simple text box input field.
#}

{% macro textarea(field, label, hint="", hideLabel=false, placeholder="") %}
{% macro textarea(field, label, hint="", hideLabel=false, placeholder="", bold=false) %}

<div class="govuk-form-group {{ errorClass(field) }}">
<label id="{{ field.id }}-label" class="govuk-label {{ 'visually-hidden' if hideLabel }}" for="{{ field.id }}">{{ label | safe }}</label>
<label id="{{ field.id }}-label" class="govuk-label {{ 'visually-hidden' if hideLabel }} {{ 'govuk-!-font-weight-bold' if bold }}" for="{{ field.id }}">{{ label | safe }}</label>

{% if hint %}
<span class="govuk-hint">{{ hint | safe }}</span>
Expand Down Expand Up @@ -325,10 +325,10 @@
Renders a textarea field.
#}
{% macro textarea(field, label, hint="", hideLabel=false, placeholder="") %}
{% macro textarea(field, label, hint="", hideLabel=false, placeholder="", bold=false) %}

<div class="govuk-form-group {{ errorClass(field) }}">
<label id="{{ field.id }}-label" class="govuk-label {{ 'visually-hidden' if hideLabel }}" for="{{ field.id }}">{{ label | safe }}</label>
<label id="{{ field.id }}-label" class="govuk-label {{ 'visually-hidden' if hideLabel }} {{ 'govuk-!-font-weight-bold' if bold }}" for="{{ field.id }}">{{ label | safe }}</label>

{% if hint %}
<span class="govuk-hint">{{ hint | safe }}</span>
Expand Down

0 comments on commit c016cba

Please sign in to comment.