]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove RTLCSS mentions and more (#42246)
authorMark Otto <markd.otto@gmail.com>
Thu, 26 Mar 2026 05:29:11 +0000 (22:29 -0700)
committerGitHub <noreply@github.com>
Thu, 26 Mar 2026 05:29:11 +0000 (22:29 -0700)
* Remove RTLCSS mentions and more

* Remove

* simplify

.cspell.json
scss/tests/mixins/_utilities.test.scss
site/src/assets/examples/carousel/carousel.css
site/src/assets/examples/cheatsheet/cheatsheet.css
site/src/content/docs/customize/rtl.mdx
site/src/content/docs/utilities/api.mdx
site/src/content/docs/utilities/text-wrapping.mdx
site/src/content/docs/utilities/word-break.mdx

index 92233df585f243eb0ff920c13953a12d15a68456..42ca4e794d6f52d8f10e1e2767a764bd96b85a1e 100644 (file)
@@ -90,7 +90,6 @@
     "relref",
     "rgba",
     "roboto",
-    "RTLCSS",
     "ruleset",
     "sassrc",
     "screenreaders",
     ".cspell.json",
     "dist/",
     "*.min.*",
-    "**/*rtl*",
     "**/tests/**"
   ],
   "useGitignore": true
index e1b37aeb82940572bd0961b7b4712307317bd549..fe062d56c9996c2206ee7d9d94dfe2503cb23a35 100644 (file)
@@ -293,27 +293,6 @@ $true-terminal-output: false;
     //   }
     // }
 
-    // @include describe("rtl") {
-    //   @include it("sets up RTLCSS for removal when false") {
-    //     @include test-generate-utility(
-    //       (
-    //         property: padding,
-    //         values: 1rem,
-    //         rtl: false
-    //       )
-    //     ) {
-    //       /* rtl:begin:remove */
-
-    //       .padding-1rem {
-    //         padding: 1rem;
-    //       }
-
-    //       /* rtl:end:remove */
-
-    //     }
-    //   }
-    // }
-
     // @include describe("rfs") {
     //   @include it("sets the fluid value when not inside media query") {
     //     @include test-generate-utility(
index 24d6a29c7ca81c3e1dc8a6e429b4feaf123f89d8..0607e93595459a9d056536a2de4ef5fddc1f5613 100644 (file)
@@ -36,12 +36,9 @@ body {
   margin-bottom: 1.5rem;
   text-align: center;
 }
-/* rtl:begin:ignore */
 .marketing .lg\:col-4 p {
-  margin-right: .75rem;
-  margin-left: .75rem;
+  margin-inline: .75rem;
 }
-/* rtl:end:ignore */
 
 
 /* Featurettes
@@ -52,13 +49,10 @@ body {
 }
 
 /* Thin out the marketing headings */
-/* rtl:begin:remove */
 .featurette-heading {
   letter-spacing: -.05rem;
 }
 
-/* rtl:end:remove */
-
 /* RESPONSIVE CSS
 -------------------------------------------------- */
 
index e87bd5adbf7de0c1b5e544173958fc949489f919..809727a1114767a2d02c9806cb19645fdebbed30 100644 (file)
@@ -61,15 +61,11 @@ body {
   line-height: 0;
   content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ccc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
   transition: transform .35s ease;
-
-  /* rtl:raw:
-  transform: rotate(180deg) translateX(-2px);
-  */
   transform-origin: .5em 50%;
 }
 
 .bd-aside .btn[aria-expanded="true"]::before {
-  transform: rotate(90deg)/* rtl:ignore */;
+  transform: rotate(90deg);
 }
 
 
@@ -99,10 +95,8 @@ body {
   .bd-header {
     position: fixed;
     top: 0;
-    /* rtl:begin:ignore */
     right: 0;
     left: 0;
-    /* rtl:end:ignore */
     z-index: 1030;
     grid-column: 1 / span 3;
   }
@@ -138,12 +132,10 @@ body {
 
   .bd-cheatsheet section > h2::before {
     position: absolute;
-    /* rtl:begin:ignore */
     top: 0;
     right: 0;
     bottom: -2rem;
     left: 0;
-    /* rtl:end:ignore */
     z-index: -1;
     content: "";
   }
index de67b235d579979e8ddd675305fc253fa067fe8c..c43f517444cdf8c17ca80e0facae4e3dcde7808f 100644 (file)
@@ -67,47 +67,6 @@ Toggle between LTR and RTL on this page to see Bootstrap's logical properties in
 `}
 </script>
 
-### Starter template
-
-Here's a modified RTL starter template:
-
-```html
-<!doctype html>
-<html lang="ar" dir="rtl">
-  <head>
-    <!-- Required meta tags -->
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-
-    <!-- Bootstrap CSS -->
-    <link rel="stylesheet" href="[[config:cdn.css]]" integrity="[[config:cdn.css_hash]]" crossorigin="anonymous">
-
-    <title>مرحبًا بالعالم!</title>
-  </head>
-  <body>
-    <h1>مرحبًا بالعالم!</h1>
-
-    <!-- Optional JavaScript; choose one of the two! -->
-
-    <!-- Option 1: Bootstrap Bundle with Floating UI and Vanilla Calendar Pro -->
-    <script type="module" src="[[config:cdn.js_bundle]]" integrity="[[config:cdn.js_bundle_hash]]" crossorigin="anonymous"></script>
-
-    <!-- Option 2: Separate Floating UI, Vanilla Calendar Pro, and Bootstrap JS via import map -->
-    <!--
-    <script type="importmap">
-    {
-      "imports": {
-        "@floating-ui/dom": "[[config:cdn.floating_ui_esm]]",
-        "vanilla-calendar-pro": "[[config:cdn.vanilla_calendar_pro_esm]]"
-      }
-    }
-    </script>
-    <script type="module" src="[[config:cdn.js]]" integrity="[[config:cdn.js_hash]]" crossorigin="anonymous"></script>
-    -->
-  </body>
-</html>
-```
-
 ## Switching directions
 
 **Need both LTR and RTL on the same page?** Wrap your content in containers with different `dir` attributes:
@@ -124,14 +83,12 @@ Here's a modified RTL starter template:
   <body>
     <!-- LTR content -->
     <div dir="ltr" lang="en">
-      <h1>This is left-to-right text</h1>
-      <p>Content flows from left to right.</p>
+      <!-- … -->
     </div>
 
     <!-- RTL content -->
     <div dir="rtl" lang="ar">
-      <h1>هذا نص من اليمين إلى اليسار</h1>
-      <p>المحتوى يتدفق من اليمين إلى اليسار.</p>
+      <!-- … -->
     </div>
   </body>
 </html>
index 2d6d4f1a4bde540179d633acd312c7561dbbfdd3..fc2bcfd4ea2a611e74dd23b5cd4fd31ae679804f 100644 (file)
@@ -23,7 +23,6 @@ The `$utilities` map contains all our utilities and is later merged with your cu
 | [`responsive`](#responsive) | Optional | `false` | Boolean indicating if responsive classes should be generated. |
 | [`important`](#importance) | Optional | `false` | Boolean indicating if `!important` should be added to the utility's CSS rules. |
 | [`print`](#print) | Optional | `false` | Boolean indicating if print classes need to be generated. |
-| `rtl` | Optional | `true` | Boolean indicating if utility should be kept in RTL. |
 </BsTable>
 
 ## API explained
index 21c9ea3b4eaefbe4e7a94153007175803ee3d139..e64ad49058d41cd2e8120fc22a643255aa57f2a9 100644 (file)
@@ -34,10 +34,6 @@ Prevent long strings of text from breaking your components' layout by using `.te
 
 <Example code={`<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>`} />
 
-<Callout type="warning">
-Note that [breaking words isn't possible in Arabic](https://rtlstyling.com/posts/rtl-styling#3.-line-break), which is the most used RTL language. Therefore `.text-break` is removed from our RTL compiled CSS.
-</Callout>
-
 ## CSS
 
 ### Sass utilities API
@@ -57,6 +53,5 @@ Text wrapping utilities are declared in our utilities API in `scss/_utilities.sc
   property: word-wrap word-break,
   class: text,
   values: (break: break-word),
-  rtl: false
 ),
 ```
index f583be9d075f60b5b668ee1f0bf885faaedf7de9..a7e77863c4612afef2ad49e4e397ee725a94b0ad 100644 (file)
@@ -10,10 +10,6 @@ Prevent long strings of text from breaking your components' layout by using `.te
 
 <Example code={`<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>`} />
 
-<Callout type="warning">
-Note that [breaking words isn't possible in Arabic](https://rtlstyling.com/posts/rtl-styling#3.-line-break), which is the most used RTL language. Therefore `.text-break` is removed from our RTL compiled CSS.
-</Callout>
-
 ## CSS
 
 ### Sass utilities API