Skip to content

Commit a1da8d0

Browse files
committed
Change wrapper class
Some adblockers (AdBlocker Ultimate) target the class `.wrapper` so we need to rename it to allow our legitimate use 🙈 Ticket: https://phabricator.wikimedia.org/T395100
1 parent 0a92551 commit a1da8d0

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

src/pattern_library/components/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</div>
4040
</header>
4141

42-
<div class="wrapper flow footer-bottom__stretch">
42+
<div class="content-wrapper flow footer-bottom__stretch">
4343

4444
<div class="sidebar" data-direction="rtl">
4545

@@ -59,7 +59,7 @@
5959
</div>
6060

6161
<footer class="site-foot">
62-
<div class="wrapper">
62+
<div class="content-wrapper">
6363
<div class="sidebar" data-direction="rtl">
6464
<div class="site-foot__content">
6565
<figure class="site-foot__brand">

src/pattern_library/css/compositions/wrapper.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
/*
2-
WRAPPER COMPOSITION
1+
/* CONTENT WRAPPER COMPOSITION
32
A common wrapper/container. Usually used for the top-level elements on the page (children of `body`) to center them horizontally.
3+
4+
Note: This is called `.content-wrapper` only because some ad-blockers target the class `.wrapper`
45
*/
5-
.wrapper {
6+
.content-wrapper {
67
margin-inline: auto;
78
width: 100%;
89
max-width: var(--wrapper-max-width, 1360px);

src/pattern_library/pages/layout-compositions/content.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,5 +200,6 @@ This should be used in all contexts where the content needs to be in the center
200200
### Examples
201201

202202
```html
203-
<div class="wrapper">I am centered and have a nice, consistent gutter.</div>
203+
204+
<div class="content-wrapper">I am centered and have a nice, consistent gutter.</div>
204205
```

src/pattern_library/patterns/site-foot/Examples.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<footer class="site-foot">
3-
<div class="wrapper">
3+
<div class="content-wrapper">
44
<div class="sidebar" data-direction="rtl">
55
<div class="site-foot__content">
66
<figure class="site-foot__brand">

src/pattern_library/patterns/site-foot/markup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<footer class="site-foot">
2-
<div class="wrapper">
2+
<div class="content-wrapper">
33
<div class="sidebar" data-direction="rtl">
44
<div class="site-foot__content">
55
<figure class="site-foot__brand">

0 commit comments

Comments
 (0)