<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Reshmi Ashok Kumar</title>
    <description>The latest articles on DEV Community by Reshmi Ashok Kumar (@reshmi_a_k).</description>
    <link>https://dev.to/reshmi_a_k</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3242627%2Fa37ca215-315d-4bf8-82f4-32b2ab74be90.png</url>
      <title>DEV Community: Reshmi Ashok Kumar</title>
      <link>https://dev.to/reshmi_a_k</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/reshmi_a_k"/>
    <language>en</language>
    <item>
      <title>LeetCode UI Bug: Misaligned "Accepted" Popup Border — Visual Demo &amp; Fix</title>
      <dc:creator>Reshmi Ashok Kumar</dc:creator>
      <pubDate>Tue, 10 Jun 2025 05:03:19 +0000</pubDate>
      <link>https://dev.to/reshmi_a_k/leetcode-ui-bug-misaligned-accepted-popup-border-visual-demo-fix-52bi</link>
      <guid>https://dev.to/reshmi_a_k/leetcode-ui-bug-misaligned-accepted-popup-border-visual-demo-fix-52bi</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo5cb7nenrrdf2b6dog5v.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo5cb7nenrrdf2b6dog5v.gif" alt="Image description" width="400" height="291"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I noticed that the blue border is slightly misaligned to the right even though the top, bottom, and rounded corners are perfect.&lt;/p&gt;

&lt;h3&gt;
  
  
  🐞 The Bug:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;When the "Accepted" popup appears, its blue blinking outline:

&lt;ul&gt;
&lt;li&gt;Is shifted ~1cm to the right(approx i'm saying for visualisation)&lt;/li&gt;
&lt;li&gt;Has perfect height and rounded corners&lt;/li&gt;
&lt;li&gt;But doesn't feel centered&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  🎥 I built a visual demo that compares:
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;❌ Buggy (LeetCode’s)&lt;/th&gt;
&lt;th&gt;✅ Fixed (Corrected)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Shifted blue outline&lt;/td&gt;
&lt;td&gt;Centered properly&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;➡ Check it out here:&lt;br&gt;&lt;br&gt;
🔗 &lt;a href="https://github.com/ReshmiAK/leetcode_bug_ui" rel="noopener noreferrer"&gt;GitHub Repo with Demo&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  ⚙️ Technical Insight:
&lt;/h3&gt;

&lt;p&gt;This bug is simulated using:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
css
.popup.buggy.show::after {
  transform: translateX(10px); /* 👈 causes the shift */
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>leetcode</category>
      <category>ui</category>
      <category>webdev</category>
      <category>html</category>
    </item>
  </channel>
</rss>
