Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Responsive Style directive overwrites inline styles #197

Closed
@ThomasBurleson

Description

The StyleDirective provides features to set inline styles when specific breakpoints activate.

<div  fxLayout
      [style]="{'font-size': '10px', 'margin-left' : '10px'}"
      [style.xs]="{'font-size': '16px'}"
      [style.md]="{'font-size': '12px'}">
</div>

These inline styles do not, however, preserve existing inline styles... they do not merge. This creates a conflict with other inline style injectors within the flex-layout API (e.g. fxLayout).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

bugenhancementhas prA PR has been created to address this issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions