braintree-placeholder is adding unnecessary height
See original GitHub issueGeneral 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
:
Can we get rid of the $nbsp;
character that is giving additional height?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:11 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
A solution would be to remove the
from the placeholder so we could use css:empty
anddisplay: 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…