Skip to content

Commit 49a5ccf

Browse files
Docs: From Twitter to X (#40706)
* From Twitter to X * . * Use Bootstrap Icons * Set X card to use `twitter` again * Update `tests/unit/popover.spec.js` --------- Co-authored-by: Julien Déramond <[email protected]>
1 parent 77699f3 commit 49a5ccf

File tree

20 files changed

+61
-61
lines changed

20 files changed

+61
-61
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Editor preferences are available in the [editor config](https://github.com/twbs/
174174

175175
Get updates on Bootstrap's development and chat with the project maintainers and community members.
176176

177-
- Follow [@getbootstrap on Twitter](https://twitter.com/getbootstrap).
177+
- Follow [@getbootstrap on X](https://x.com/getbootstrap).
178178
- Read and subscribe to [The Official Bootstrap Blog](https://blog.getbootstrap.com/).
179179
- Ask questions and explore [our GitHub Discussions](https://github.com/twbs/bootstrap/discussions).
180180
- Discuss, ask questions, and more on [the community Discord](https://discord.gg/bZUvakRU3M) or [Bootstrap subreddit](https://www.reddit.com/r/bootstrap/).
@@ -194,12 +194,12 @@ See [the Releases section of our GitHub project](https://github.com/twbs/bootstr
194194

195195
**Mark Otto**
196196

197-
- <https://twitter.com/mdo>
197+
- <https://x.com/mdo>
198198
- <https://github.com/mdo>
199199

200200
**Jacob Thornton**
201201

202-
- <https://twitter.com/fat>
202+
- <https://x.com/fat>
203203
- <https://github.com/fat>
204204

205205

hugo.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ params:
6363
rfs_version: "v10.0.0"
6464
github_org: "https://github.com/twbs"
6565
repo: "https://github.com/twbs/bootstrap"
66-
twitter: "getbootstrap"
66+
x: "getbootstrap"
6767
opencollective: "https://opencollective.com/bootstrap"
6868
blog: "https://blog.getbootstrap.com/"
6969
themes: "https://themes.getbootstrap.com/"

js/tests/unit/popover.spec.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('Popover', () => {
5858
describe('show', () => {
5959
it('should toggle a popover after show', () => {
6060
return new Promise(resolve => {
61-
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://twitter.com/getbootstrap">BS twitter</a>'
61+
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://x.com/getbootstrap">BS X</a>'
6262

6363
const popoverEl = fixtureEl.querySelector('a')
6464
const popover = new Popover(popoverEl)
@@ -78,7 +78,7 @@ describe('Popover', () => {
7878

7979
it('should show a popover', () => {
8080
return new Promise(resolve => {
81-
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://twitter.com/getbootstrap">BS twitter</a>'
81+
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://x.com/getbootstrap">BS X</a>'
8282

8383
const popoverEl = fixtureEl.querySelector('a')
8484
const popover = new Popover(popoverEl)
@@ -94,7 +94,7 @@ describe('Popover', () => {
9494

9595
it('should set title and content from functions', () => {
9696
return new Promise(resolve => {
97-
fixtureEl.innerHTML = '<a href="#">BS twitter</a>'
97+
fixtureEl.innerHTML = '<a href="#">BS X</a>'
9898

9999
const popoverEl = fixtureEl.querySelector('a')
100100
const popover = new Popover(popoverEl, {
@@ -117,7 +117,7 @@ describe('Popover', () => {
117117

118118
it('should call content and title functions with trigger element', () => {
119119
return new Promise(resolve => {
120-
fixtureEl.innerHTML = '<a href="#" data-foo="bar">BS twitter</a>'
120+
fixtureEl.innerHTML = '<a href="#" data-foo="bar">BS X</a>'
121121

122122
const popoverEl = fixtureEl.querySelector('a')
123123
const popover = new Popover(popoverEl, {
@@ -144,7 +144,7 @@ describe('Popover', () => {
144144

145145
it('should call content and title functions with correct this value', () => {
146146
return new Promise(resolve => {
147-
fixtureEl.innerHTML = '<a href="#" data-foo="bar">BS twitter</a>'
147+
fixtureEl.innerHTML = '<a href="#" data-foo="bar">BS X</a>'
148148

149149
const popoverEl = fixtureEl.querySelector('a')
150150
const popover = new Popover(popoverEl, {
@@ -247,7 +247,7 @@ describe('Popover', () => {
247247
})
248248

249249
it('"setContent" should keep the initial template', () => {
250-
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://twitter.com/getbootstrap" data-bs-custom-class="custom-class">BS twitter</a>'
250+
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://x.com/getbootstrap" data-bs-custom-class="custom-class">BS X</a>'
251251

252252
const popoverEl = fixtureEl.querySelector('a')
253253
const popover = new Popover(popoverEl)
@@ -264,7 +264,7 @@ describe('Popover', () => {
264264

265265
it('should call setContent once', () => {
266266
return new Promise(resolve => {
267-
fixtureEl.innerHTML = '<a href="#">BS twitter</a>'
267+
fixtureEl.innerHTML = '<a href="#">BS X</a>'
268268

269269
const popoverEl = fixtureEl.querySelector('a')
270270
const popover = new Popover(popoverEl, {
@@ -298,7 +298,7 @@ describe('Popover', () => {
298298

299299
it('should show a popover with provided custom class', () => {
300300
return new Promise(resolve => {
301-
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://twitter.com/getbootstrap" data-bs-custom-class="custom-class">BS twitter</a>'
301+
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://x.com/getbootstrap" data-bs-custom-class="custom-class">BS X</a>'
302302

303303
const popoverEl = fixtureEl.querySelector('a')
304304
const popover = new Popover(popoverEl)
@@ -318,7 +318,7 @@ describe('Popover', () => {
318318
describe('hide', () => {
319319
it('should hide a popover', () => {
320320
return new Promise(resolve => {
321-
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://twitter.com/getbootstrap">BS twitter</a>'
321+
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://x.com/getbootstrap">BS X</a>'
322322

323323
const popoverEl = fixtureEl.querySelector('a')
324324
const popover = new Popover(popoverEl)
@@ -339,7 +339,7 @@ describe('Popover', () => {
339339

340340
describe('jQueryInterface', () => {
341341
it('should create a popover', () => {
342-
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://twitter.com/getbootstrap">BS twitter</a>'
342+
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://x.com/getbootstrap">BS X</a>'
343343

344344
const popoverEl = fixtureEl.querySelector('a')
345345

@@ -352,7 +352,7 @@ describe('Popover', () => {
352352
})
353353

354354
it('should create a popover with a config object', () => {
355-
fixtureEl.innerHTML = '<a href="#" title="Popover">BS twitter</a>'
355+
fixtureEl.innerHTML = '<a href="#" title="Popover">BS X</a>'
356356

357357
const popoverEl = fixtureEl.querySelector('a')
358358

@@ -367,7 +367,7 @@ describe('Popover', () => {
367367
})
368368

369369
it('should not re create a popover', () => {
370-
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://twitter.com/getbootstrap">BS twitter</a>'
370+
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://x.com/getbootstrap">BS X</a>'
371371

372372
const popoverEl = fixtureEl.querySelector('a')
373373
const popover = new Popover(popoverEl)
@@ -381,7 +381,7 @@ describe('Popover', () => {
381381
})
382382

383383
it('should throw error on undefined method', () => {
384-
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://twitter.com/getbootstrap">BS twitter</a>'
384+
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://x.com/getbootstrap">BS X</a>'
385385

386386
const popoverEl = fixtureEl.querySelector('a')
387387
const action = 'undefinedMethod'
@@ -395,7 +395,7 @@ describe('Popover', () => {
395395
})
396396

397397
it('should should call show method', () => {
398-
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://twitter.com/getbootstrap">BS twitter</a>'
398+
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://x.com/getbootstrap">BS X</a>'
399399

400400
const popoverEl = fixtureEl.querySelector('a')
401401
const popover = new Popover(popoverEl)
@@ -413,7 +413,7 @@ describe('Popover', () => {
413413

414414
describe('getInstance', () => {
415415
it('should return popover instance', () => {
416-
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://twitter.com/getbootstrap">BS twitter</a>'
416+
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://x.com/getbootstrap">BS X</a>'
417417

418418
const popoverEl = fixtureEl.querySelector('a')
419419
const popover = new Popover(popoverEl)
@@ -423,7 +423,7 @@ describe('Popover', () => {
423423
})
424424

425425
it('should return null when there is no popover instance', () => {
426-
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://twitter.com/getbootstrap">BS twitter</a>'
426+
fixtureEl.innerHTML = '<a href="#" title="Popover" data-bs-content="https://x.com/getbootstrap">BS X</a>'
427427

428428
const popoverEl = fixtureEl.querySelector('a')
429429

js/tests/visual/tooltip.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<div class="container">
2121
<h1>Tooltip <small>Bootstrap Visual Test</small></h1>
2222

23-
<p class="text-body-secondary">Tight pants next level keffiyeh <a href="#" data-bs-toggle="tooltip" title="Default tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href="#" data-bs-toggle="tooltip" title="Another tooltip">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a href="#" data-bs-toggle="tooltip" title="Another one here too">whatever keytar</a>, scenester farm-to-table banksy Austin <a href="#" data-bs-toggle="tooltip" title="The last tip!">twitter handle</a> freegan cred raw denim single-origin coffee viral.</p>
23+
<p class="text-body-secondary">Tight pants next level keffiyeh <a href="#" data-bs-toggle="tooltip" title="Default tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href="#" data-bs-toggle="tooltip" title="Another tooltip">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a href="#" data-bs-toggle="tooltip" title="Another one here too">whatever keytar</a>, scenester farm-to-table banksy Austin <a href="#" data-bs-toggle="tooltip" title="The last tip!">X handle</a> freegan cred raw denim single-origin coffee viral.</p>
2424

2525
<hr>
2626

site/content/docs/5.3/about/overview.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Bootstrap is maintained by a [small team of developers](https://github.com/orgs/
1616

1717
Originally created by a designer and a developer at Twitter, Bootstrap has become one of the most popular front-end frameworks and open source projects in the world.
1818

19-
Bootstrap was created at Twitter in mid-2010 by [@mdo](https://twitter.com/mdo) and [@fat](https://twitter.com/fat). Prior to being an open-sourced framework, Bootstrap was known as _Twitter Blueprint_. A few months into development, Twitter held its [first Hack Week](https://blog.twitter.com/engineering/en_us/a/2010/hack-week) and the project exploded as developers of all skill levels jumped in without any external guidance. It served as the style guide for internal tools development at the company for over a year before its public release, and continues to do so today.
19+
Bootstrap was created at Twitter in mid-2010 by [@mdo](https://x.com/mdo) and [@fat](https://x.com/fat). Prior to being an open-sourced framework, Bootstrap was known as _Twitter Blueprint_. A few months into development, Twitter held its [first Hack Week](https://blog.x.com/engineering/en_us/a/2010/hack-week) and the project exploded as developers of all skill levels jumped in without any external guidance. It served as the style guide for internal tools development at the company for over a year before its public release, and continues to do so today.
2020

21-
Originally [released](https://blog.twitter.com/developer/en_us/a/2011/bootstrap-twitter) on <time datetime="2011-08-19 11:25">Friday, August 19, 2011</time>, we've since had over [twenty releases]({{< param repo >}}/releases), including two major rewrites with v2 and v3. With Bootstrap 2, we added responsive functionality to the entire framework as an optional stylesheet. Building on that with Bootstrap 3, we rewrote the library once more to make it responsive by default with a mobile first approach.
21+
Originally [released](https://blog.x.com/developer/en_us/a/2011/bootstrap-twitter) on <time datetime="2011-08-19 11:25">Friday, August 19, 2011</time>, we've since had over [twenty releases]({{< param repo >}}/releases), including two major rewrites with v2 and v3. With Bootstrap 2, we added responsive functionality to the entire framework as an optional stylesheet. Building on that with Bootstrap 3, we rewrote the library once more to make it responsive by default with a mobile first approach.
2222

2323
With Bootstrap 4, we once again rewrote the project to account for two key architectural changes: a migration to Sass and the move to CSS's flexbox. Our intention is to help in a small way to move the web development community forward by pushing for newer CSS properties, fewer dependencies, and new technologies across more modern browsers.
2424

site/content/docs/5.3/content/tables.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Highlight a table row or cell by adding a `.table-active` class.
142142
<tr>
143143
<th scope="row">3</th>
144144
<td colspan="2" class="table-active">Larry the Bird</td>
145-
<td>@twitter</td>
145+
<td>@x</td>
146146
</tr>
147147
</tbody>
148148
</table>
@@ -163,7 +163,7 @@ Highlight a table row or cell by adding a `.table-active` class.
163163
<tr>
164164
<th scope="row">3</th>
165165
<td colspan="2" class="table-active">Larry the Bird</td>
166-
<td>@twitter</td>
166+
<td>@x</td>
167167
</tr>
168168
</tbody>
169169
</table>
@@ -195,7 +195,7 @@ Highlight a table row or cell by adding a `.table-active` class.
195195
<tr>
196196
<th scope="row">3</th>
197197
<td colspan="2" class="table-active">Larry the Bird</td>
198-
<td>@twitter</td>
198+
<td>@x</td>
199199
</tr>
200200
</tbody>
201201
</table>
@@ -216,7 +216,7 @@ Highlight a table row or cell by adding a `.table-active` class.
216216
<tr>
217217
<th scope="row">3</th>
218218
<td colspan="2" class="table-active">Larry the Bird</td>
219-
<td>@twitter</td>
219+
<td>@x</td>
220220
</tr>
221221
</tbody>
222222
</table>
@@ -294,7 +294,7 @@ Add a thicker border, darker between table groups—`<thead>`, `<tbody>`, and `<
294294
<tr>
295295
<th scope="row">3</th>
296296
<td colspan="2">Larry the Bird</td>
297-
<td>@twitter</td>
297+
<td>@x</td>
298298
</tr>
299299
</tbody>
300300
</table>
@@ -420,7 +420,7 @@ Border styles, active styles, and table variants are not inherited by nested tab
420420
<th scope="row">3</th>
421421
<td>Larry</td>
422422
<td>the Bird</td>
423-
<td>@twitter</td>
423+
<td>@x</td>
424424
</tr>
425425
</tbody>
426426
</table>
@@ -484,7 +484,7 @@ Similar to tables and dark tables, use the modifier classes `.table-light` or `.
484484
<th scope="row">3</th>
485485
<td>Larry</td>
486486
<td>the Bird</td>
487-
<td>@twitter</td>
487+
<td>@x</td>
488488
</tr>
489489
</tbody>
490490
</table>
@@ -528,7 +528,7 @@ Similar to tables and dark tables, use the modifier classes `.table-light` or `.
528528
<th scope="row">3</th>
529529
<td>Larry</td>
530530
<td>the Bird</td>
531-
<td>@twitter</td>
531+
<td>@x</td>
532532
</tr>
533533
</tbody>
534534
</table>
@@ -574,7 +574,7 @@ Similar to tables and dark tables, use the modifier classes `.table-light` or `.
574574
<th scope="row">3</th>
575575
<td>Larry</td>
576576
<td>the Bird</td>
577-
<td>@twitter</td>
577+
<td>@x</td>
578578
</tr>
579579
</tbody>
580580
<tfoot>
@@ -655,7 +655,7 @@ You can also put the `<caption>` on the top of the table with `.caption-top`.
655655
<th scope="row">3</th>
656656
<td>Larry</td>
657657
<td>the Bird</td>
658-
<td>@twitter</td>
658+
<td>@x</td>
659659
</tr>
660660
</tbody>
661661
</table>

site/content/docs/5.3/examples/album/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h4>About</h4>
1414
<div class="col-sm-4 offset-md-1 py-4">
1515
<h4>Contact</h4>
1616
<ul class="list-unstyled">
17-
<li><a href="#" class="text-white">Follow on Twitter</a></li>
17+
<li><a href="#" class="text-white">Follow on X</a></li>
1818
<li><a href="#" class="text-white">Like on Facebook</a></li>
1919
<li><a href="#" class="text-white">Email me</a></li>
2020
</ul>

site/content/docs/5.3/examples/blog-rtl/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ <h4 class="fst-italic">الأرشيف</h4>
239239
<h4 class="fst-italic">في مكان آخر</h4>
240240
<ol class="list-unstyled">
241241
<li><a href="#">GitHub</a></li>
242-
<li><a href="#">Twitter</a></li>
242+
<li><a href="#">X</a></li>
243243
<li><a href="#">Facebook</a></li>
244244
</ol>
245245
</div>
@@ -250,7 +250,7 @@ <h4 class="fst-italic">في مكان آخر</h4>
250250
</main>
251251

252252
<footer class="py-5 text-center text-body-secondary bg-body-tertiary">
253-
<p>تم تصميم نموذج المدونة لـ <a href="https://getbootstrap.com/">Bootstrap</a> بواسطة <a href="https://twitter.com/mdo"><bdi lang="en" dir="ltr">@mdo</bdi></a>.</p>
253+
<p>تم تصميم نموذج المدونة لـ <a href="https://getbootstrap.com/">Bootstrap</a> بواسطة <a href="https://x.com/mdo"><bdi lang="en" dir="ltr">@mdo</bdi></a>.</p>
254254
<p class="mb-0">
255255
<a href="#">عد إلى الأعلى</a>
256256
</p>

site/content/docs/5.3/examples/blog/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ <h4 class="fst-italic">Archives</h4>
291291
<h4 class="fst-italic">Elsewhere</h4>
292292
<ol class="list-unstyled">
293293
<li><a href="#">GitHub</a></li>
294-
<li><a href="#">Twitter</a></li>
294+
<li><a href="#">X</a></li>
295295
<li><a href="#">Facebook</a></li>
296296
</ol>
297297
</div>
@@ -302,7 +302,7 @@ <h4 class="fst-italic">Elsewhere</h4>
302302
</main>
303303

304304
<footer class="py-5 text-center text-body-secondary bg-body-tertiary">
305-
<p>Blog template built for <a href="https://getbootstrap.com/">Bootstrap</a> by <a href="https://twitter.com/mdo">@mdo</a>.</p>
305+
<p>Blog template built for <a href="https://getbootstrap.com/">Bootstrap</a> by <a href="https://x.com/mdo">@mdo</a>.</p>
306306
<p class="mb-0">
307307
<a href="#">Back to top</a>
308308
</p>

site/content/docs/5.3/examples/cheatsheet-rtl/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ <h3>الجداول</h3>
203203
<tr>
204204
<th scope="row">3</th>
205205
<td colspan="2">Larry the Bird</td>
206-
<td><bdo lang="en" dir="ltr">@twitter</bdo></td>
206+
<td><bdo lang="en" dir="ltr">@x</bdo></td>
207207
</tr>
208208
</tbody>
209209
</table>
@@ -235,7 +235,7 @@ <h3>الجداول</h3>
235235
<tr>
236236
<th scope="row">3</th>
237237
<td colspan="2">Larry the Bird</td>
238-
<td><bdo lang="en" dir="ltr">@twitter</bdo></td>
238+
<td><bdo lang="en" dir="ltr">@x</bdo></td>
239239
</tr>
240240
</tbody>
241241
</table>
@@ -295,7 +295,7 @@ <h3>الجداول</h3>
295295
<tr>
296296
<th scope="row">3</th>
297297
<td colspan="2">Larry the Bird</td>
298-
<td><bdo lang="en" dir="ltr">@twitter</bdo></td>
298+
<td><bdo lang="en" dir="ltr">@x</bdo></td>
299299
</tr>
300300
</tbody>
301301
</table>

site/content/docs/5.3/examples/cheatsheet/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ <h3>Tables</h3>
202202
<tr>
203203
<th scope="row">3</th>
204204
<td colspan="2">Larry the Bird</td>
205-
<td>@twitter</td>
205+
<td>@x</td>
206206
</tr>
207207
</tbody>
208208
</table>
@@ -234,7 +234,7 @@ <h3>Tables</h3>
234234
<tr>
235235
<th scope="row">3</th>
236236
<td colspan="2">Larry the Bird</td>
237-
<td>@twitter</td>
237+
<td>@x</td>
238238
</tr>
239239
</tbody>
240240
</table>
@@ -294,7 +294,7 @@ <h3>Tables</h3>
294294
<tr>
295295
<th scope="row">3</th>
296296
<td colspan="2">Larry the Bird</td>
297-
<td>@twitter</td>
297+
<td>@x</td>
298298
</tr>
299299
</tbody>
300300
</table>

site/content/docs/5.3/examples/cover/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ <h1>Cover your page.</h1>
2828
</main>
2929

3030
<footer class="mt-auto text-white-50">
31-
<p>Cover template for <a href="https://getbootstrap.com/" class="text-white">Bootstrap</a>, by <a href="https://twitter.com/mdo" class="text-white">@mdo</a>.</p>
31+
<p>Cover template for <a href="https://getbootstrap.com/" class="text-white">Bootstrap</a>, by <a href="https://x.com/mdo" class="text-white">@mdo</a>.</p>
3232
</footer>
3333
</div>

0 commit comments

Comments
 (0)