Skip to content

Commit

Permalink
Merge pull request #811 from alphagov/update-width-override-examples
Browse files Browse the repository at this point in the history
Remove label width overrides on Spacing and Text Input page
  • Loading branch information
Dave House authored Feb 28, 2019
2 parents d3c7074 + 72f8129 commit e420f30
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
18 changes: 6 additions & 12 deletions src/components/text-input/input-fluid-width/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ ignore_in_sitemap: true

{{ govukInput({
label: {
text: "Full width",
classes: "govuk-!-width-full"
text: "Full width"
},
classes: "govuk-!-width-full",
id: "full",
Expand All @@ -18,8 +17,7 @@ ignore_in_sitemap: true

{{ govukInput({
label: {
text: "Three-quarters width",
classes: "govuk-!-width-three-quarters"
text: "Three-quarters width"
},
classes: "govuk-!-width-three-quarters",
id: "three-quarters",
Expand All @@ -28,8 +26,7 @@ ignore_in_sitemap: true

{{ govukInput({
label: {
text: "Two-thirds width",
classes: "govuk-!-width-two-thirds"
text: "Two-thirds width"
},
classes: "govuk-!-width-two-thirds",
id: "two-thirds",
Expand All @@ -38,8 +35,7 @@ ignore_in_sitemap: true

{{ govukInput({
label: {
text: "One-half width",
classes: "govuk-!-width-one-half"
text: "One-half width"
},
classes: "govuk-!-width-one-half",
id: "one-half",
Expand All @@ -48,8 +44,7 @@ ignore_in_sitemap: true

{{ govukInput({
label: {
text: "One-third width",
classes: "govuk-!-width-one-third"
text: "One-third width"
},
classes: "govuk-!-width-one-third",
id: "one-third",
Expand All @@ -58,8 +53,7 @@ ignore_in_sitemap: true

{{ govukInput({
label: {
text: "One-quarter width",
classes: "govuk-!-width-one-quarter"
text: "One-quarter width"
},
classes: "govuk-!-width-one-quarter",
id: "one-quarter",
Expand Down
18 changes: 6 additions & 12 deletions src/styles/spacing/input-width/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ ignore_in_sitemap: true

{{ govukInput({
label: {
text: "Full name",
classes: "govuk-!-width-full"
text: "Full name"
},
classes: "govuk-!-width-full",
id: "full-name",
Expand All @@ -22,8 +21,7 @@ ignore_in_sitemap: true

{{ govukInput({
label: {
text: "Full name",
classes: "govuk-!-width-three-quarters"
text: "Full name"
},
classes: "govuk-!-width-three-quarters",
id: "full-name",
Expand All @@ -34,8 +32,7 @@ ignore_in_sitemap: true

{{ govukInput({
label: {
text: "Full name",
classes: "govuk-!-width-two-thirds"
text: "Full name"
},
classes: "govuk-!-width-two-thirds",
id: "full-name",
Expand All @@ -46,8 +43,7 @@ ignore_in_sitemap: true

{{ govukInput({
label: {
text: "Full name",
classes: "govuk-!-width-one-half"
text: "Full name"
},
classes: "govuk-!-width-one-half",
id: "full-name",
Expand All @@ -58,8 +54,7 @@ ignore_in_sitemap: true

{{ govukInput({
label: {
text: "Full name",
classes: "govuk-!-width-one-third"
text: "Full name"
},
classes: "govuk-!-width-one-third",
id: "full-name",
Expand All @@ -70,8 +65,7 @@ ignore_in_sitemap: true

{{ govukInput({
label: {
text: "Full name",
classes: "govuk-!-width-one-quarter"
text: "Full name"
},
classes: "govuk-!-width-one-quarter",
id: "full-name",
Expand Down

0 comments on commit e420f30

Please sign in to comment.