Skip to content

update styles#59

Merged
choonkeat merged 5 commits intochoonkeat:mainfrom
wynn987:update-styles
Apr 16, 2026
Merged

update styles#59
choonkeat merged 5 commits intochoonkeat:mainfrom
wynn987:update-styles

Conversation

@wynn987
Copy link
Copy Markdown

@wynn987 wynn987 commented Apr 15, 2026

update styling

  • titles are now bold
  • but (optional) remains unbold
  • field description is below title instead of below input field (consistent with rest of GovEntry)
  • update font colors and sizes to be more consistent with rest of goventry too
before after
Screenshot 2026-04-15 at 2 45 02 PM Screenshot 2026-04-15 at 2 43 40 PM

|

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 15, 2026

Deploy Preview for tiny-form-fields ready!

Name Link
🔨 Latest commit 033bab9
🔍 Latest deploy log https://app.netlify.com/projects/tiny-form-fields/deploys/69e03b329d975c0007899858
😎 Deploy Preview https://deploy-preview-59--tiny-form-fields.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread src/Main.elm

else
text " (optional)"
span [ class "tff-label-optional" ] [ text " (optional)" ]
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a span with class so that the (optional) can remain unbold while the label becomes bold

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Though the actual bold style should probably be a decision by the app using the lib, instead of the lib itself?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, actually the minimal change i need is just having this span and class, every other thing including the ordering i can do on my side. however, if you think that moving the field description up is a good to have in your library for accessibility sake, then i would say the text looks very cramped using ur original style and this updated styling would suit this new layout much better

ss if i keep ur original styles and just move the field desc up

Screenshot 2026-04-16 at 9 16 38 AM

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree

Comment thread src/Main.elm
System ->
text ""
]
, viewFormFieldOptionsPreview config fieldID formField
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved field description to above the input field

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that this reordering by is an accessibility win (speak before the input) but to fully utilise that, we should use aria-describedby to associate the hint with the input

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added in 033bab9

Comment thread input.css
@apply align-middle;
}

.tff-field-group > label.tff-field-label {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since checkbox and radiobuttons also use field label, scope down the css selector further by adding .tff-field-group > so that only the titles are affected

@choonkeat choonkeat merged commit 3bdb7f5 into choonkeat:main Apr 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants