Skip to content

Commit

Permalink
Make scroll-spy mirrored on rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
JKMarkowski committed Feb 19, 2020
1 parent 2570590 commit 6389062
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<div class="header-item" *ngFor="let item of items" [ngClass]="{'selected': selectedSpy === item.id}">
<span class="fd-scroll-spy-example-icon-class icon">
<fd-icon [glyph]="'arrow-right'" [size]="'xs'"></fd-icon>
</span>
{{item.name}}
</span>{{item.name}}
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<div class="header-item" *ngFor="let item of items" [ngClass]="{'selected': selectedSpy === item.id}">
<span class="fd-scroll-spy-example-icon-class icon">
<fd-icon [glyph]="'arrow-right'" [size]="'xs'"></fd-icon>
</span>
{{item.name}}
</span>{{item.name}}
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
}

.icon {
left: -4px;
opacity: 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<div class="header-item" *ngFor="let item of items" [ngClass]="{'selected': selectedSpy === item.id}">
<span class="fd-scroll-spy-example-icon-class icon">
<fd-icon [glyph]="'arrow-right'" [size]="'xs'"></fd-icon>
</span>
{{item.name}}
</span>{{item.name}}
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
}

.icon {
left: -4px;
opacity: 0;
}

Expand Down
3 changes: 3 additions & 0 deletions apps/docs/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,12 @@ fd-card {
.fd-scroll-spy-example-icon-class {
position: relative;
display: inline-block;
margin-right: 4px;
@at-root {
[dir="rtl"] &,
&[dir="rtl"] {
margin-right: 0;
margin-left: 4px;
transform: rotate(180deg);
bottom: 2px;
}
Expand Down

0 comments on commit 6389062

Please sign in to comment.