Skip to content

Commit ddc9c51

Browse files
committed
docs: update RTL examples
1 parent 97174ce commit ddc9c51

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

docs/assets/scss/docs-pickers.scss

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// fusv-disable
2+
$enable-ltr: false;
3+
$enable-rtl: true;
4+
// fusv-enable
5+
6+
@import "../../../scss/functions";
7+
@import "../../../scss/variables";
8+
@import "../../../scss/variables-dark";
9+
@import "../../../scss/maps";
10+
@import "../../../scss/mixins";
11+
@import "../../../scss/utilities";
12+
13+
// stylelint-disable selector-no-qualifying-type
14+
div[dir="rtl"] {
15+
@import "../../../scss/calendar";
16+
@import "../../../scss/date-picker";
17+
@import "../../../scss/time-picker";
18+
}
19+
// stylelint-enable selector-no-qualifying-type

docs/content/forms/date-picker.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -164,19 +164,19 @@ RTL support is built-in and can be explicitly controlled through the `$enable-rt
164164
### Hebrew
165165

166166
{{< example >}}
167-
<div class="row">
167+
<div class="row" dir="rtl">
168168
<div class="col-lg-4">
169-
<div data-coreui-locale="he-IL" data-coreui-placeholder="בחר תאריך" data-coreui-toggle="date-picker" dir="rtl"></div>
169+
<div data-coreui-locale="he-IL" data-coreui-placeholder="בחר תאריך" data-coreui-toggle="date-picker"></div>
170170
</div>
171171
</div>
172172
{{< /example >}}
173173

174174
### Persian
175175

176176
{{< example >}}
177-
<div class="row">
177+
<div class="row" dir="rtl">
178178
<div class="col-lg-4">
179-
<div data-coreui-locale="fa-IR" data-coreui-placeholder="تاریخ شروع" data-coreui-toggle="date-picker" dir="rtl"></div>
179+
<div data-coreui-locale="fa-IR" data-coreui-placeholder="تاریخ شروع" data-coreui-toggle="date-picker"></div>
180180
</div>
181181
</div>
182182
{{< /example >}}

docs/content/forms/date-range-picker.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -233,19 +233,19 @@ RTL support is built-in and can be explicitly controlled through the `$enable-rt
233233
### Hebrew
234234

235235
{{< example >}}
236-
<div class="row">
236+
<div class="row" dir="rtl">
237237
<div class="col-lg-5">
238-
<div data-coreui-locale="he-IL" data-coreui-placeholder="בחר תאריך,תאריך סיום" data-coreui-toggle="date-range-picker" dir="rtl"></div>
238+
<div data-coreui-locale="he-IL" data-coreui-placeholder="בחר תאריך,תאריך סיום" data-coreui-toggle="date-range-picker"></div>
239239
</div>
240240
</div>
241241
{{< /example >}}
242242

243243
### Persian
244244

245245
{{< example >}}
246-
<div class="row">
246+
<div class="row" dir="rtl">
247247
<div class="col-lg-5">
248-
<div data-coreui-locale="fa-IR" data-coreui-placeholder="تاریخ شروع,تاریخ پایان" data-coreui-toggle="date-range-picker" dir="rtl"></div>
248+
<div data-coreui-locale="fa-IR" data-coreui-placeholder="تاریخ شروع,تاریخ پایان" data-coreui-toggle="date-range-picker"></div>
249249
</div>
250250
</div>
251251
{{< /example >}}

docs/layouts/partials/stylesheet.html

+4
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@
2525
{{- $style := resources.Get "scss/docs.scss" | toCSS $sassOptions | postCSS $postcssOptions }}
2626

2727
<link href="{{ $style.Permalink | relURL }}" rel="stylesheet">
28+
29+
{{- $stylePickers := resources.Get "scss/docs-pickers.scss" | toCSS }}
30+
31+
<link href="{{ $stylePickers.Permalink | relURL }}" rel="stylesheet">
2832
{{- end }}

0 commit comments

Comments
 (0)