Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

theme: colors not available outside of framework components #11772

@oliversalzburg

Description

@oliversalzburg

Bug, enhancement request, or proposal:

Theme classes, like md-warn should be applicable to any element.

CodePen and steps to reproduce the issue:

CodePen Demo which demonstrates the issue: https://codepen.io/oliversalzburg/pen/YmjvJz

Detailed Reproduction Steps:

  1. Create an arbitrary element, like a span and apply any of the theme color classes.

What is the expected behavior?

The element is colored according to the theme.

What is the current behavior?

It isn't.

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

The declared theme should affect all areas of the application that the developer sees fit. The current behavior forces them to duplicate functionality, by creating additional styles which aren't under control of the AngularJS Material theming support.

Which versions of AngularJS, Material, OS, and browsers are affected?

  • AngularJS: 1.7
  • AngularJS Material: 1.19
  • OS: All
  • Browsers: All

Is there anything else we should know? Stack Traces, Screenshots, etc.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions