Skip to content

Commit 40bfd8b

Browse files
committed
Prettier formatting
1 parent 4f0a13a commit 40bfd8b

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
lines changed

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ public/
88
# Do not ignore the following files
99
!.github/
1010
!src/
11+
!src/**
12+
!src/**/*
1113
!README.md
1214

1315
# Re-ignore sub-directories from the above exempt directories:

src/app/public/ngx-scroll-top.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[class.idle]="fadeState() === 'idle'"
77
[style.background-color]="backgroundColor()"
88
aria-label="Scroll to top"
9-
style="overflow: visible;"
9+
style="overflow: visible"
1010
>
1111
<div class="content" #content>
1212
<ng-content></ng-content>
@@ -28,4 +28,4 @@
2828
</svg>
2929
}
3030
</button>
31-
}
31+
}

src/app/public/ngx-scroll-top.component.scss

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ div.content > * {
2727
button {
2828
border-radius: 50%;
2929
border: none;
30-
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
30+
box-shadow:
31+
0px 3px 5px -1px rgba(0, 0, 0, 0.2),
32+
0px 6px 10px 0px rgba(0, 0, 0, 0.14),
33+
0px 1px 18px 0px rgba(0, 0, 0, 0.12);
3134
box-sizing: border-box;
3235
color: inherit;
3336
cursor: pointer;
@@ -68,11 +71,19 @@ svg.default-content {
6871
}
6972

7073
@keyframes fadeIn {
71-
from { opacity: 0; }
72-
to { opacity: 1; }
74+
from {
75+
opacity: 0;
76+
}
77+
to {
78+
opacity: 1;
79+
}
7380
}
7481

7582
@keyframes fadeOut {
76-
from { opacity: 1; }
77-
to { opacity: 0; }
83+
from {
84+
opacity: 1;
85+
}
86+
to {
87+
opacity: 0;
88+
}
7889
}

src/app/public/ngx-scroll-top.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import {
22
Component,
33
HostBinding,
44
HostListener,
5-
input,
65
Input,
76
OnInit,
7+
input,
88
signal,
99
} from '@angular/core';
1010

@@ -107,7 +107,7 @@ export class NgxScrollTopComponent implements OnInit {
107107
/**
108108
* State of button animation: "idle", "fading-in", "fading-out".
109109
*/
110-
protected fadeState = signal<'idle'|'fading-in'|'fading-out'>('idle');
110+
protected fadeState = signal<'idle' | 'fading-in' | 'fading-out'>('idle');
111111

112112
/** Default padding from screen edges. */
113113
private readonly defaultPadding = '16px';

0 commit comments

Comments
 (0)