Skip to content

Commit

Permalink
<pre>: Disable auto-hiding scrollbar in legacy Edge (twbs#30685)
Browse files Browse the repository at this point in the history
Disable auto-hiding scrollbar in legacy Edge to avoid overlap, making it impossible to interact with the content.
  • Loading branch information
MartijnCuppens authored and olsza committed Oct 3, 2020
1 parent a4022ae commit 4f7314f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scss/_reboot.scss
Expand Up @@ -290,6 +290,8 @@ samp {
// 1. Remove browser default top margin
// 2. Reset browser default of `1em` to use `rem`s
// 3. Don't allow content to break outside
// 4. Disable auto-hiding scrollbar in legacy Edge to avoid overlap,
// making it impossible to interact with the content

pre {
display: block;
Expand All @@ -298,6 +300,7 @@ pre {
overflow: auto; // 3
@include font-size($code-font-size);
color: $pre-color;
-ms-overflow-style: scrollbar; // 4

// Account for some code outputs that place code tags in pre tags
code {
Expand Down

0 comments on commit 4f7314f

Please sign in to comment.