Skip to content

Commit

Permalink
fix(ui5-panel): rotate button counterclockwise in RTL mode (#4470)
Browse files Browse the repository at this point in the history
  • Loading branch information
niyap authored Dec 13, 2021
1 parent d742501 commit d3f6e39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/main/src/Panel.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
class="ui5-panel-root"
role="{{accRole}}"
aria-label="{{effectiveAccessibleName}}"
dir="{{effectiveDir}}"
>
<!-- header: either header or h1 with header text -->
<div
Expand Down
4 changes: 4 additions & 0 deletions packages/main/src/themes/Panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
transform: rotate(90deg);
}

:host(:not([collapsed])) [dir="rtl"] .ui5-panel-header-button {
transform: rotate(-90deg);
}

:host([fixed]) .ui5-panel-header-title {
width: 100%;
}
Expand Down

0 comments on commit d3f6e39

Please sign in to comment.