{"id":277304,"date":"2018-10-10T13:28:00","date_gmt":"2018-10-10T20:28:00","guid":{"rendered":"http:\/\/css-tricks.com\/?p=277304"},"modified":"2018-10-10T19:28:23","modified_gmt":"2018-10-11T02:28:23","slug":"the-dialog-element","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/the-dialog-element\/","title":{"rendered":"The dialog element"},"content":{"rendered":"
Chris Manning digs into A dialog element provides:<\/p>\n And those are just some highlights! Showing content on top of other content has never been easier.<\/p>\n<\/blockquote>\n This is the evolution of the web at it’s best. Identifying a major developer struggle and helping solve it. <\/p>\n","protected":false},"excerpt":{"rendered":" Chris Manning digs into <dialog>: A dialog element provides: An element that is easy to show and hide, including an open boolean attribute on the element itself. Two versions: a standard popover or modal version. A ::backdrop pseudo-element for modal types. Built-in focus: see dialog focusing steps. ARIA role support (dialog is the implied default). Also […]<\/p>\n","protected":false},"author":3,"featured_media":277466,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":"","jetpack_publicize_message":"The dialog element","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[17],"tags":[1391,697],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2018\/10\/dialog-featured.jpg?fit=1200%2C600&ssl=1","jetpack-related-posts":[],"featured_media_src_url":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2018\/10\/dialog-featured.jpg?fit=1024%2C512&ssl=1","_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/277304"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=277304"}],"version-history":[{"count":2,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/277304\/revisions"}],"predecessor-version":[{"id":277504,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/277304\/revisions\/277504"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media\/277466"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=277304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/categories?post=277304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=277304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<dialog><\/code>: <\/p>\n
\n
\n
open<\/code> boolean attribute on the element itself.<\/li>\n
dialog<\/code> is the implied default). Also accepts the alertdialog role<\/a>.<\/li>\n
open<\/code> boolean and methods
show<\/code>,
showModal<\/code>, and
close<\/code>.<\/li>\n<\/ul>\n