cloudinary / cloudinary/cloudinary_angular

Background image position options instead of center

Aberta
#297 2 comentários 0 reações 1 responsável Reivindicada por @strausr Ver no GitHub
enhancement
Linguagem predominante
TypeScript
Estrelas
302
Forks
224
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

## Explain your use case
There are many cases where 'center center' is not ideal for background positions as defined in the background image directive. https://github.com/cloudinary/cloudinary_angular/blob/master/projects/angular-cld/src/lib/cloudinary-background-image.directive.ts

## Describe the problem you’re trying to solve
A way to provide an override without some css !important hack to control image position.

## Do you have a proposed solution?
Input param for background position, defaults to center

```
@Input('clbackgroundposition') background_position = 'center center';
...
this.renderer.setStyle(nativeElement, 'background-position', `${background_position}`);

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.