Skip to content

Commit

Permalink
Ensures correct margin used on expand/collapse button when in RTL tex…
Browse files Browse the repository at this point in the history
…t mode (#499)

* Documentation updates
NavMenu - Add rtl css, add IDisposable to components

* Move expand/collapse button to the end

* Fix margin on expand/collapse button when switching between RTL and LTR

---------

Co-authored-by: Vincent Baaij <[email protected]>
  • Loading branch information
mrpmorris and vnbaaij authored Jul 6, 2023
1 parent 0bd300e commit bb6852c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@
::deep .navmenu-group::part(expand-collapse-button) {
left: unset;
right: 0;
margin-right: calc(var(--expand-collapse-button-size) * -1);
margin-inline-end: calc(var(--expand-collapse-button-size) * -1 + (var(--design-unit) * 2px));
}

[dir="rtl"] * ::deep .navmenu-group.nested::part(expand-collapse-button) {
left: 0;
right: unset;
margin-inline-start: calc(var(--expand-collapse-button-size) - (var(--design-unit) * 2px));
}

0 comments on commit bb6852c

Please sign in to comment.