Skip to content

Commit

Permalink
Esri#770 - add right to left support for dropdown-right
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcpederson committed Feb 28, 2017
1 parent 95c4f2c commit 3763899
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- added right-to-left styles for tabs (#776)
- fixed elements inside accordions triggering close event (#774)
- fix alignment of shorter loader-text (#771)
- added right-to-left styles for dropdown-right modifier (#770)

## 1.0.0-rc.1

Expand Down
24 changes: 16 additions & 8 deletions lib/sass/calcite-web/components/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@
position: absolute;
right: .35rem;
}
html[dir="rtl"] &:after {
right: auto;
left: .35rem;
padding-left: 0;
}
@if ($include-right-to-left) {
html[dir="rtl"] &:after {
right: auto;
left: .35rem;
padding-left: 0;
}

html[dir="rtl"] & {
padding-left: 1.5rem;
padding-right: 0.9rem;
html[dir="rtl"] & {
padding-left: 1.5rem;
padding-right: 0.9rem;
}
}
// for inline svg, the code is much easier
} else {
Expand All @@ -81,6 +83,12 @@
overflow: auto;
&.dropdown-right {
right: 0;
@if ($include-right-to-left) {
html[dir="rtl"] & {
right: auto;
left: 0;
}
}
}
}

Expand Down

0 comments on commit 3763899

Please sign in to comment.