]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove `dialog` from the HTML5 shim style (#26269)
authorPatrick H. Lauke <redux@splintered.co.uk>
Sun, 15 Apr 2018 23:25:39 +0000 (00:25 +0100)
committerGitHub <noreply@github.com>
Sun, 15 Apr 2018 23:25:39 +0000 (00:25 +0100)
`<dialog>`, in browsers that support it, has user agent styles of `dialog { display:block; ...} dialog:not([open]) { display:none; }`
by forcing it to `display:block` in the shim, the dialog is shown even when closed. There's no clean way to shim this for non-supporting browsers,
but arguably these browsers would have further problems with pure `<dialog>` usage anyway, and it's up to authors to then use different elements/shims.

scss/_reboot.scss

index dd23f16d1b520ffddf37b129b5be4db1d31ddb33..cfc99391ec353564fd4b79b157a8294da64726be 100644 (file)
@@ -42,7 +42,7 @@ html {
 
 // stylelint-disable selector-list-comma-newline-after
 // Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)
-article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {
+article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
   display: block;
 }
 // stylelint-enable selector-list-comma-newline-after