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.

braintree-placeholder is adding unnecessary height

See original GitHub issue

General information

  • SDK/Library version: 1.8.1
  • Browser and OS: Chrome 62 on macOS Sierra

Issue description

Additional height is being added by   character in braintree-placeholder:

image image

Can we get rid of the $nbsp; character that is giving additional height?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
crookedneighborcommented, Aug 12, 2020

Thanks for the feedback! I’m logging this issue with a “Design Feedback” label so we can address these concerns when we start working on the redesign for Drop-in in the next major version.

1reaction
RicLePcommented, Apr 10, 2019

A solution would be to remove the   from the placeholder so we could use css :empty and display: none; to hide it, then it could be filled when the heading is shown. Currently it makes attractive layouts really akward as the space is too large without the heading shown.

Or remove the placeholder and change how the item animates in.

Update

Adding the following will move the vard box up. This class is replaced with .braintree-show-methods once details are entered which removes the negative margin…

.braintree-show-card {
	margin-top: -30px;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

braintree-web/hosted-fields - Documentation
Will be used as the placeholder attribute of the input. If placeholder is not natively supported by the browser, it will be polyfilled....
Read more >
Hosted Fields - / - Troubleshooting and FAQ - PayPal Developer
You might want to try adding a height or border value to your CSS to make each <div> look more like an <input>...
Read more >
Hosted Fields | Examples | JavaScript
We created these examples to show a few of the many possibilities of styling Hosted Fields. We recommend using your own CSS and...
Read more >
javascript - How to prevent Tailwind from applying default style ...
I'm having an issue getting Tailwind to play nice with Braintree's hosted fields. The issue is that for the card number field, ...
Read more >
Webviewer JavaScript issue? Braintree integration
I'm adding a Braintree integration, similarly to how we've already integrated Stripe. ... #card-number, #cvv, #expiration-date{height:20px;} ...
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