Skip to content

Animations should be exported for re-use #8904

@marcincichocki

Description

@marcincichocki

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

Animations to be exported

What is the current behavior?

Animations are not exported

What is the use-case or motivation for changing an existing behavior?

Building custom material design components that match existing components without duplicating code. For example I would like to create sort component that would allow me to sort table on mobile devices when not every column is visible and the space is limited. Right now I'm forced to copy animations from https://github.com/angular/material2/blob/b4a83ab49a1c3d27acfdeb2ece8e21f755a32606/src/lib/sort/sort-header.ts#L69-L104 to look the same as MatSortHeader.

With exported animations I could reuse that code.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

5.0.0

Is there anything else we should know?

Some animations are exported so there is an inconsistency.

https://github.com/angular/material2/blob/b4a83ab49a1c3d27acfdeb2ece8e21f755a32606/src/lib/select/select-animations.ts#L34-L69

Metadata

Metadata

Assignees

Labels

P5The team acknowledges the request but does not plan to address it, it remains open for discussionfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions