𝗘𝘃𝗲𝗿 𝗻𝗼𝘁𝗶𝗰𝗲𝗱 𝘆𝗼𝘂𝗿 𝗯𝗲𝗮𝘂𝘁𝗶𝗳𝘂𝗹 𝗳𝗼𝗿𝗺 𝗶𝗻𝗽𝘂𝘁𝘀 𝗴𝗲𝘁 𝗿𝘂𝗶𝗻𝗲𝗱 𝗯𝘆 𝗯𝗿𝗼𝘄𝘀𝗲𝗿 𝗮𝘂𝘁𝗼𝗳𝗶𝗹𝗹? 🎨 That annoying yellow/white background that appears when Chrome (or other browsers) fills your login forms?.... especially in dark/light theme UIs This happens because browsers apply default autofill styles once they fill a field, and those styles often use internal !𝗶𝗺𝗽𝗼𝗿𝘁𝗮𝗻𝘁 values that are hard to override with normal CSS. There’s a 𝗖𝗦𝗦 𝗽𝘀𝗲𝘂𝗱𝗼-𝗰𝗹𝗮𝘀𝘀 you can use called :autofill (and its legacy alias :-𝘄𝗲𝗯𝗸𝗶𝘁-𝗮𝘂𝘁𝗼𝗳𝗶𝗹𝗹) which matches inputs that have been autofilled by the browser. You can then apply your own styles for background, text color, etc. without breaking your design. Reference: https://lnkd.in/g9-77ZJ2 𝗬𝗼𝘂 𝗱𝗼𝗻’𝘁 𝗵𝗮𝘃𝗲 𝘁𝗼 𝗱𝗶𝘀𝗮𝗯𝗹𝗲 𝗮𝘂𝘁𝗼𝗳𝗶𝗹𝗹 — 𝗶𝘁’𝘀 𝗮 𝘂𝘀𝗲𝗳𝘂𝗹 𝗨𝗫 𝗳𝗲𝗮𝘁𝘂𝗿𝗲 — 𝗯𝘂𝘁 𝘆𝗼𝘂 𝗰𝗮𝗻 𝗺𝗮𝗸𝗲 𝗶𝘁 𝗳𝗶𝘁 𝘆𝗼𝘂𝗿 𝘁𝗵𝗲𝗺𝗲. Here’s a visual comparison 👇 #FrontendDevelopment #WebDevelopment #CSS #ReactJS #UIUX #WebDesign #JavaScript #FrontendTips #UIDesign #DesignSystems #Chrome #BrowserTips #Autofill #DeveloperLife #CodingTips #SoftwareEngineering #BuildInPublic #LinkedInTech

To view or add a comment, sign in

Explore content categories