akveo / akveo/nebular

[TOASTR]: Add ability to position toast in top center

Open
#2,439 3 comments 6 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8.1k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

### Issue type

**I'm submitting a**

* [ ] bug report
* [x] feature request

### Issue description

**Current behavior:**
Currently, NbGlobalPosition allows only to use TOP_RIGHT, TOP_LEFT, BOTTOM_RIGHT, BOTTOM_LEFT positions.

**Expected behavior:**
NbGlobalPosition should allow to specify TOP_CENTER, BOTTOM_CENTER positions.

### Other information:
Currently, it is hardly possible to extend ToastrModule due to the fact, that NbPositionHelper, NbPositionBuilderService and NbToastrContainerRegistry classes depend on the concrete enum NbGlobalLogicalPosition.

![image](https://user-images.githubusercontent.com/7979992/86807868-ed6f5780-c082-11ea-8721-0f5b56b2f01e.png)

![image](https://user-images.githubusercontent.com/7979992/86807911-fbbd7380-c082-11ea-8cf4-9bb9f58da84c.png)

![image](https://user-images.githubusercontent.com/7979992/86807940-06780880-c083-11ea-9539-917f5e4e922f.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.