question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create consumer theme for form input

See original GitHub issue

Issue Description

To match consumer UX, we want to enable the theming of terra input. Here is a screenshot of the current component: screen shot 2017-08-28 at 9 27 53 am

Evaluate if we will solve this issue as well https://github.com/cerner/terra-core/issues/755

Issue Type

  • New Feature
  • Enhancement
  • Bug
  • Other

Expected Behavior

CSS custom properties are added to enable the theming of the <Input /> component to match consumer UX visuals.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
StephenEssercommented, Aug 29, 2017

Using the not selector is a good indication of poor encapsulation. My vote is for the second approach Alex suggested. The Control should either not consume the base input or the base input should contain the bare minimum styles that apply to every input and do not cause conflicts. It feels awkward the base Input.scss immediately overrides declared styles to satisfy radio / checkbox and then then Control.scss also adds its’ own styles.

There’s already some conflicting styles in Input.scss from Control.scss https://github.com/cerner/terra-core/blob/master/packages/terra-form/src/Control.scss#L5 https://github.com/cerner/terra-core/blob/master/packages/terra-form/src/Input.scss#L15

My opinion is that radio / checkbox specific theme-able styles should be encapsulated in Control.scss, or Radio.scss / Checkbox.scss respectively

0reactions
neilpfeiffercommented, Feb 6, 2018

OCS input has been created and will be resolved by current work on this new issue #1207

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add a contact form to your theme - Shopify.dev
Learn how to create a contact form, and add custom fields. ... You can add a contact form to your theme to allow...
Read more >
How to Use Liquid to Build Forms on Shopify for Themes
In this article, we look at how Liquid can be leveraged to simplify the process when you build forms on Shopify by generating...
Read more >
Online Forms | Creating Form Templates & Themes - Formstack
Go into a form and click the Theme tab at the bottom of the form options sidebar on the left. Scroll to the...
Read more >
Change the theme or font of your form - Google Docs Editors ...
In Google Forms, open a form. Click Customize theme Customize theme . Under "Color," you can choose a theme color and background color...
Read more >
Creating a New Theme in Form Builder 5
Enterprise customers can make themes public for their users. After you have created the theme, you can navigate to: Admin Dash>Forms>Form Themes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found