Skip to content

Commit

Permalink
Merge pull request #147 from ogcio/10994-bold-questions
Browse files Browse the repository at this point in the history
feat: 10994 bold questions
  • Loading branch information
pete223 authored Oct 12, 2023
2 parents 94b632f + 02dc09c commit d6f69a3
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion 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 package/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ogcio/ogcio-ds",
"description": "OGCIO-DS contains the code you need to start building a user interface for government platforms and services.",
"version": "0.0.18",
"version": "0.0.19",
"main": "govie/all.js",
"module": "govie-esm/all.mjs",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/govie/components/checkboxes/Checkboxes.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const createInputNode = (fieldId, index, itemData, isExclusive) => {

const createInputLabelNode = (fieldId, index, itemData, hiddenLabel) => {
const label = document.createElement('label')
label.className = 'govie-label govie-checkboxes__label'
label.className = 'govie-label--s govie-checkboxes__label'
label.setAttribute('for', createInputId(fieldId, index))
if (hiddenLabel) {
label.innerHTML = `<span class="govie-visually-hidden">${itemData.label}</span>`
Expand Down
2 changes: 1 addition & 1 deletion src/govie/components/date-input/DateInput.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const createErrorMessage = (args) => {

const createInputItemLabel = (fieldId, itemType) => {
const label = document.createElement('label')
label.className = 'govie-label govie-date-input__label'
label.className = 'govie-label--s govie-date-input__label'
label.setAttribute('for', `${fieldId}-${itemType.toLowerCase()}`)
label.innerText = itemType

Expand Down
2 changes: 1 addition & 1 deletion src/govie/components/file-upload/FileUpload.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const createErrorMessage = (args) => {

const createLabel = (args) => {
const label = document.createElement('label')
label.className = 'govie-label'
label.className = 'govie-label--s'
label.setAttribute('for', `${args.fieldId}`)
label.innerText = args.label

Expand Down
2 changes: 1 addition & 1 deletion src/govie/components/input/TextInput.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const createHintElement = (args) => {
}

const createLabelElement = (args) => {
const labelClassNames = ['govie-label']
const labelClassNames = ['govie-label--s']

if (args.labelAsHeading) {
labelClassNames.push('govie-label--l')
Expand Down
2 changes: 1 addition & 1 deletion src/govie/components/label/Label.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {

const Template = (args) => {
const label = document.createElement('label')
label.className = 'govie-label'
label.className = 'govie-label--s'
label.innerHTML = args.text

return beautifyHtmlNode(label)
Expand Down
2 changes: 1 addition & 1 deletion src/govie/components/radios/Radio.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const createRadioItem = ({
conditional && input.setAttribute('data-aria-controls', `conditional-${id}`)

const labelComponent = document.createElement('label')
labelComponent.className = 'govie-label govie-radios__label'
labelComponent.className = 'govie-label--s govie-radios__label'
labelComponent.setAttribute('for', id)
labelComponent.innerText = label

Expand Down
2 changes: 1 addition & 1 deletion src/govie/components/select/Select.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Template = (args) => {
const classnames = ['govie-form-group']

const label = document.createElement('label')
label.className = 'govie-label'
label.className = 'govie-label--s'
label.setAttribute('for', args.id)
label.innerText = args.label

Expand Down
2 changes: 1 addition & 1 deletion src/govie/components/textarea/Textarea.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const createHintElement = (args) => {
}

const createLabelElement = (args) => {
const labelClassNames = ['govie-label']
const labelClassNames = ['govie-label--s']

if (args.labelAsHeading) {
labelClassNames.push('govie-label--l')
Expand Down

0 comments on commit d6f69a3

Please sign in to comment.