Skip to content

Commit

Permalink
fix(tab): edge prop
Browse files Browse the repository at this point in the history
fixes #15003
  • Loading branch information
manucorporat committed Aug 7, 2018
1 parent 948d083 commit 2a4327f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions core/src/components/fab/fab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,22 @@

:host(.fab-vertical-top) {
top: $fab-content-margin;
}

&.fab-edge {
top: -$fab-size / 2;
}
:host(.fab-vertical-top.fab-edge) {
top: -$fab-size / 2;
}


:host(.fab-vertical-bottom) {
bottom: $fab-content-margin;
}

&.fab-edge {
bottom: -$fab-size / 2;
}
:host(.fab-vertical-bottom.fab-edge) {
bottom: -$fab-size / 2;
}


:host(.fab-vertical-center) {
@include margin(-$fab-size / 2, null, null, null);

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/fab/fab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class Fab {
class: {
[`fab-horizontal-${this.horizontal}`]: !!this.horizontal,
[`fab-vertical-${this.vertical}`]: !!this.vertical,
['fab-edge']: this.edge
'fab-edge': this.edge
}
};
}
Expand Down

0 comments on commit 2a4327f

Please sign in to comment.