{"id":6816,"date":"2025-08-19T23:03:12","date_gmt":"2025-08-20T04:03:12","guid":{"rendered":"https:\/\/frontendmasters.com\/blog\/?p=6816"},"modified":"2025-08-19T23:03:13","modified_gmt":"2025-08-20T04:03:13","slug":"what-is-popoverhint","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/what-is-popoverhint\/","title":{"rendered":"What is popover=hint?"},"content":{"rendered":"\n<p>If you know a bit about the <code>popover<\/code> API in HTML, you might know it&#8217;s basically 1) click a button 2) toggle visibility of another element. <a href=\"https:\/\/una.im\/popover-hint\/\">Una has a great article<\/a> explaining that there is a bit more to it.<\/p>\n\n\n\n<p>First, there are actually <em>three kinds<\/em> of popovers. There is the normal kind, which close when you click away (or ESC). If you don&#8217;t want that, there is the &#8220;manual&#8221; kind which requires very explicit closing and lives an isolated life, not affecting other popups. The new kind, &#8220;hint&#8221;, is an in-betweener where it can be opened without closing other normal popups, yet retains the light dismissal properties. <\/p>\n\n\n\n<p>Second, it doesn&#8217;t <em>have<\/em> to be a click to open a popover. You could bind whatever you want in JavaScript naturally, but with a new <code>interestfor<\/code> attribute (and CSS friends) you can cause a trigger on essentially a hover (with a mouse) or focus (with a keyboard). All experimental stuff, but \u2728cool\u2728.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you know a bit about the popover API in HTML, you might know it&#8217;s basically 1) click a button 2) toggle visibility of another element. Una has a great article explaining that there is a bit more to it. First, there are actually three kinds of popovers. There is the normal kind, which close [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6819,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[31,120],"class_list":["post-6816","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-html","tag-popover"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2025\/08\/pexels-photo-2777776.jpeg?fit=1880%2C1245&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/6816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=6816"}],"version-history":[{"count":2,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/6816\/revisions"}],"predecessor-version":[{"id":6818,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/6816\/revisions\/6818"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/6819"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=6816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=6816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=6816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}