I have a lightning:input of type datetime

When I select a date it's ok, but when I select a time, after selecting during this "click" it's showing like a blue border around all the element. I know this occurs depending on the browser.

Can I customize this to color transparent or something?

You can see this trying with different browsers here: https://developer.salesforce.com/docs/component-library/tools/playground/f6bca8ae9d601a7ef19d5134f0399ba682ef7165/edit


It seems to be the outline for the compound form wrapper for the component.

The outline can be removed using the CSS outline property, like below:

.slds-form--compound, .slds-form_compound{

I hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.