Skip to content

Commit

Permalink
Reinstate hidden horizontal overflow on 404 page
Browse files Browse the repository at this point in the history
See #155
  • Loading branch information
adamwoodnz committed Sep 23, 2024
1 parent 9220e95 commit c639c02
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/wp-content/themes/wporg-parent-2021/sass/page/_404.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ body.error404 {
background-color: var(--wp--preset--color--charcoal-2);

.site-content-container {
position: relative;

/*
* Prevent "oops" from creating a horizontal scroll.
* In some iOS versions, these rules also have to be applied to <html>, but that would bleed over to other
* pages. It's better to just let there be a scroll, since it's not a commonly used page.
*/
position: relative; // needed for overflow to work
overflow-x: hidden;

z-index: 0;

@include break-small() {
Expand Down

0 comments on commit c639c02

Please sign in to comment.