Skip to content

Commit e31a4da

Browse files
sijavbrandyscarney
authored andcommitted
feat(list): RTL support for list-header (#11328)
RTL fix (scss changes) for list-header for wp, ios and android platform
1 parent 0ec71cd commit e31a4da

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

src/components/list/list.ios.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ $list-ios-header-background-color: transparent !default;
182182
background: $list-ios-header-background-color;
183183
}
184184

185+
[dir="rtl"] .list-header-ios {
186+
padding-right: $list-ios-header-padding-left;
187+
padding-left: 0;
188+
}
185189

186190
// Generate iOS List Header Colors
187191
// --------------------------------------------------

src/components/list/list.md.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ $list-md-header-color: #757575 !default;
168168
color: $list-md-header-color;
169169
}
170170

171+
[dir="rtl"] .list-header-md {
172+
padding-right: $list-md-header-padding-left;
173+
padding-left: 0;
174+
}
175+
171176

172177
// Generate Material Design List Header Colors
173178
// --------------------------------------------------

src/components/list/list.wp.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ $list-wp-header-color: $list-wp-text-color !default;
165165
color: $list-wp-header-color;
166166
}
167167

168+
[dir="rtl"] .list-header-wp {
169+
padding-right: $list-wp-header-padding-left;
170+
padding-left: 0;
171+
}
172+
168173

169174
// Generate Windows List Header Colors
170175
// --------------------------------------------------

0 commit comments

Comments
 (0)