<?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>Forem: S.M. Jegan</title>
    <description>The latest articles on Forem by S.M. Jegan (@jeganmurugan_0101).</description>
    <link>https://forem.com/jeganmurugan_0101</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%2F3578848%2Ff9fd63b1-33ef-4814-a004-0ad221793d52.jpg</url>
      <title>Forem: S.M. Jegan</title>
      <link>https://forem.com/jeganmurugan_0101</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jeganmurugan_0101"/>
    <language>en</language>
    <item>
      <title>Use Fully Sites and key points</title>
      <dc:creator>S.M. Jegan</dc:creator>
      <pubDate>Fri, 28 Nov 2025 01:46:25 +0000</pubDate>
      <link>https://forem.com/jeganmurugan_0101/use-fully-sites-and-key-points-cmm</link>
      <guid>https://forem.com/jeganmurugan_0101/use-fully-sites-and-key-points-cmm</guid>
      <description>&lt;p&gt;Open source &lt;/p&gt;

&lt;p&gt;An open source component library optimized for fast development, easy maintenance, and accessibility. Just import and go—no configuration required.&lt;br&gt;
&lt;a href="https://www.radix-ui.com/" rel="noopener noreferrer"&gt;https://www.radix-ui.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Automate end-to-end scenarios, validate emails, and integrate with our API for seamless workflows.&lt;br&gt;
&lt;a href="https://mailosaur.com/" rel="noopener noreferrer"&gt;https://mailosaur.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Testing tool:&lt;br&gt;
&lt;a href="https://playwright.dev/" rel="noopener noreferrer"&gt;https://playwright.dev/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Just for Ref 😋&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
    </item>
    <item>
      <title>When we can use ARIA</title>
      <dc:creator>S.M. Jegan</dc:creator>
      <pubDate>Fri, 28 Nov 2025 01:30:27 +0000</pubDate>
      <link>https://forem.com/jeganmurugan_0101/when-we-can-use-aria-42h6</link>
      <guid>https://forem.com/jeganmurugan_0101/when-we-can-use-aria-42h6</guid>
      <description>&lt;p&gt;Element type    Use ARIA?   Why&lt;br&gt;
Native button with visible text ❌ No  HTML already covers it&lt;br&gt;
Paragraph with text ❌ No  Screen reader reads text&lt;br&gt;
Icon-only button    ✔️ Yes  HTML can't describe icon&lt;br&gt;
Button that expands a menu  ✔️ Yes  HTML can't describe expanded state&lt;br&gt;
Custom elements (divs) acting as UI ✔️ Yes  Need roles, states&lt;br&gt;
Form inputs with labels ❌ No  Use  instead&lt;/p&gt;

&lt;p&gt;👉 Don't add ARIA to explain what HTML already explains.&lt;br&gt;
👉 Use ARIA only to explain behavior or meaning HTML cannot express&lt;/p&gt;

&lt;p&gt;Let’s compare with simple real-world examples&lt;/p&gt;

&lt;p&gt;Correct ARIA Uses&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Icon button
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;button aria-label="Close"&amp;gt;
   &amp;lt;svg&amp;gt;...&amp;lt;/svg&amp;gt;
&amp;lt;/button&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;HTML cannot describe the icon → ARIA adds missing info.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Expandable menu&lt;br&gt;
Menu&lt;br&gt;
HTML button can’t express the “open/closed” state.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Custom elements (like a &lt;/p&gt; acting as a menu)


&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div role="menu"&amp;gt;
  &amp;lt;div role="menuitem"&amp;gt;Save&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;Here we use ARIA because &lt;/p&gt; has zero meaning.

&lt;p&gt;❌ Wrong ARIA Uses&lt;br&gt;
❌ 1. Adding ARIA where HTML already gives meaning&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p aria-label="Paragraph"&amp;gt;Hello world&amp;lt;/p&amp;gt;   &amp;lt;!-- Wrong --&amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;❌ Why this is wrong?&lt;br&gt;
Because:&lt;br&gt;
The &lt;/p&gt;
&lt;p&gt; already contains text (“Some text”)&lt;br&gt;
That text already tells a screen reader what the paragraph says&lt;br&gt;
So aria-label="Paragraph" replaces the real text with something useless&lt;/p&gt;

&lt;p&gt;❌ 2. Adding role to an element that already has one&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;button role="button"&amp;gt;Submit&amp;lt;/button&amp;gt;       &amp;lt;!-- Wrong --&amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;❌ 3. Labelling something that already has visible text&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;button aria-label="Submit"&amp;gt;Submit&amp;lt;/button&amp;gt;  &amp;lt;!-- Wrong --&amp;gt;
&lt;/code&gt;&lt;/pre&gt;




&lt;/li&gt;

&lt;/ol&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
