Skip to content

Commit 7b7aafd

Browse files
committed
chore(update): patch release 0.4.1 🐛
1 parent b4389c4 commit 7b7aafd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-scrolltop",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Lightweight, Material Design inspired button for scroll-to-top of the page. No dependencies. Pure Angular!",
55
"author": "Lukas Bartak <[email protected]> (https://github.com/bartholomej)",
66
"scripts": {

projects/ngx-scrolltop/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Lightweight, **Material Design inspired button for scroll-to-top** of the page.
99

1010
Just hit the button to smoothly scroll back to the top of the page. [Here's the demo.](http://bartholomej.github.io/ngx-scrolltop/)
1111

12-
- Lightweight
12+
- Lightweight _(~10 kB)_
1313
- Material Design inspired
1414
- Smoothly animated
1515
- Highly customizable
@@ -44,15 +44,15 @@ yarn add ngx-scrolltop # npm install ngx-scrolltop --save
4444

4545
### Setup
4646

47-
```js
47+
```diff
4848
...
49-
import { NgxScrollTopModule } from 'ngx-scrolltop';
49+
+ import { NgxScrollTopModule } from 'ngx-scrolltop';
5050
...
5151

5252
@NgModule({
5353
imports: [
5454
...
55-
NgxScrollTopModule.forRoot()
55+
+ NgxScrollTopModule
5656
],
5757
...
5858
bootstrap: [AppComponent]
@@ -73,8 +73,8 @@ In **app.component.html** you just need to add your new button. Usually at the e
7373
| Option | Type | Default | Description |
7474
| ------------------- | ------------------------------------------------------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7575
| **mode** | 'smart' \| 'classic' | 'classic' | **Smart** mode shows button only when you scroll more than two screens down and then you will try to go back to top. **Classic** mode shows button immediately when you scroll at least one screen down. |
76-
| **backgroundColor** | string | #212121 | Background color (you can use all values for `backgroud-color` css property) |
77-
| **symbolColor** | string | #fafafa | Symbol color (you can use all values for `fill` svg property) |
76+
| **backgroundColor** | string | #212121 | Background color (you can use all values for `backgroud-color` css property). _You can override `theme` color_ |
77+
| **symbolColor** | string | #fafafa | Symbol color (you can use all values for `fill` svg property). _You can override `theme` color_ |
7878
| **size** | number | 40 | Button size [in pixels]. _(Symbol will be resized automatically_) |
7979
| **symbol** | string | | You can use utf8 chars for customizing symbol. For example: `` |
8080
| **position** | 'left' \| 'right' | 'right' | Left or right, that is the question... |

projects/ngx-scrolltop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-scrolltop",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Lightweight, Material Design inspired button for scroll-to-top of the page. No dependencies. Pure Angular!",
55
"author": "Lukas Bartak <[email protected]> (https://github.com/bartholomej)",
66
"peerDependencies": {

0 commit comments

Comments
 (0)