<?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: Ibraheem</title>
    <description>The latest articles on DEV Community by Ibraheem (@heem).</description>
    <link>https://dev.to/heem</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%2F1167041%2F8b015a31-202a-409d-a598-43f76a649a42.png</url>
      <title>DEV Community: Ibraheem</title>
      <link>https://dev.to/heem</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/heem"/>
    <language>en</language>
    <item>
      <title>HTML Native Popover - No JavaScript</title>
      <dc:creator>Ibraheem</dc:creator>
      <pubDate>Thu, 22 Aug 2024 22:10:15 +0000</pubDate>
      <link>https://dev.to/heem/html-native-popover-no-javascript-3a5</link>
      <guid>https://dev.to/heem/html-native-popover-no-javascript-3a5</guid>
      <description>&lt;p&gt;Hello there everyone. I am a Frontend Developer with most of the experience in React. Recently, I have been trying to use plain HTML/CSS and least amount of JavaScript as possible, to make things simple and fast for the browsers.&lt;/p&gt;

&lt;p&gt;I came across HTML's Native &lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover" rel="noopener noreferrer"&gt;Popover&lt;/a&gt; which allowed me to make a hamburger menu with 0 JavaScript. It also has built-in accessibility support which is great.&lt;/p&gt;

&lt;p&gt;Here's a piece of code for my hamburger menu using Popover&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    &amp;lt;button
        id="hamburger-button" aria-controls="mobile-menu" aria-expanded="false" aria-haspopup="true"
        aria-label="Open blog navigation" popovertarget="mobile-menu"
    &amp;gt;
        &amp;lt;Icon
            id="hamburger-icon" name="mdi:hamburger-menu" title="Hamburger Menu Icon" width={70} height={70}
        /&amp;gt;
    &amp;lt;/button&amp;gt;
    &amp;lt;nav popover id="mobile-menu" aria-label="Main blog navigation"&amp;gt;
        &amp;lt;button popovertarget="mobile-menu" aria-controls="mobile-menu" aria-label="Close blog navigation"&amp;gt;
            &amp;lt;Icon
                id="close-icon" name="mdi:close" title="Close Icon" width={70} height={70}
            /&amp;gt;
        &amp;lt;/button&amp;gt;
        &amp;lt;SiteNavLinks /&amp;gt;
    &amp;lt;/nav&amp;gt;```

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
    </item>
  </channel>
</rss>
