If you have the Last Pass extension installed in chrome it displays a ...
on the right side of certain input fields.
I was wondering: Is there a way to hide this with css?
If you have the Last Pass extension installed in chrome it displays a ...
on the right side of certain input fields.
I was wondering: Is there a way to hide this with css?
You can also hide the icon by adding this attribute to the input element:
data-lpignore="true"
As of 2022 the LastPass icon is placed as a sibling to the input field, so I added this rule to my input container and it worked. π
div[data-lastpass-icon-root] {
display: none;
}
.hide-lastpass ~ div[data-lastpass-icon-root]
and assigning the "hide-lastpass" class to the input. I used "~" rather than "+" because in my site, there was a button right after the input I wanted it removed from, and the LastPass div is created after that button. β
Couchant As of Oct 2023
place this either in you root css (if you want to disable it for the entire site och just 'above' the input fields you do not want the be affected by LastPass. First rule removes icon, second disables the popup part (i.e. autocomplete on field click) if you wish that as well.
div[data-lastpass-icon-root] { display: none; }
div[data-lastpass-root] { display: none; }
I figured it out!
I placed this in my input field styles:
background-image:none !important;
background-attachment:none !important;
padding-right:0 !important;
border:1px solid #ABADB3 !important;
Which had an effect, but something was still visible. Placing this in my global styles got rid of it completely:
div[id^=__lpform_] {
display: none;
}
To suppress the icon for an input field like below:
<input type="tel" id="cc-number" autocomplete="off">
I used below css:
img[id^='__lpform_cc-number_icon'] {
display: none !important;
}
input {
background-image: none !important;
}
data-lpignore="true"
^^ no longer works I guess. I am not sure, as it didn't work in my case.
I've also faced the same issue, As I am using Telerik RadCombobox and RadTextBox, Last pass icon is displaying in all the server controls.
Tried using below css: jst paste it in the aspx page
div[data-lastpass-icon-root] { display: none. }
Its working fine.
Update NOV 2021
I have noticed that all LastPass widgets got class css-1obar3y.
div.css-1obar3y {
display: none!important;
}
Works perfectly for me
Summary:
For STANDARD <input type='text' the following CSS/Style will work:
data-lpignore='true'
autocomplete='off'
However, LastPass will ignore "data-lpignore/autocomplete" when for any <input=type='text', the input 'id' or 'name' have the word "user", "name", or "email" or any synonym similar, OR EVEN if the label for said input has the "for" or label text containing the word "user", "name", or "email" or any synonym similar. In this case you must use:
DIV[data-lastpass-icon-root] {
display: none !important; /* This disables LastPass */
}
I was able to handle this by below snippet. Maybe they've changed attribute name.
div[data-lastpass-root] {
display: none;
}
Due to last-pass I was getting some extra space below to the footer on all pages of Angular.
div[data-lastpass-icon-root]
β
Ostiary © 2022 - 2024 β McMap. All rights reserved.