Skip to content

Commit aa270b0

Browse files
committed
refactor: add RTL styling for inputs
1 parent bb76243 commit aa270b0

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

scss/_reboot.scss

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -554,17 +554,16 @@ legend {
554554

555555
// 1. A few input types should stay LTR
556556
// See https://rtlstyling.com/posts/rtl-styling#form-inputs
557-
// 2. RTL only output
558-
// See https://rtlcss.com/learn/usage-guide/control-directives/#raw
559557

560-
/* rtl:raw:
561-
[type="tel"],
562-
[type="url"],
563-
[type="email"],
564-
[type="number"] {
565-
direction: ltr;
558+
*[dir="rtl"] {
559+
[type="tel"],
560+
[type="url"],
561+
[type="email"],
562+
[type="number"] {
563+
direction: ltr;
564+
}
566565
}
567-
*/
566+
568567

569568
// Remove the inner padding in Chrome and Safari on macOS.
570569

0 commit comments

Comments
 (0)