-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng add @angular/material asks to choose theme, but there is no way to preview it #13708
Labels
feature
This issue represents a new feature or feature request rather than a bug or bug fix
Comments
It would also be helpful to mention which themes are light and which are dark, as that affects how examples will look like when using the docs. |
crisbeto
added a commit
to crisbeto/material.angular.io
that referenced
this issue
Oct 21, 2018
* Reworks the theming setup to store only the current theme's name, rather than the entire object in `localStorage`. This is more robust for the cases where we want to change the theme object's interface. * Adds the ability to link people to the docs site with a particular theme (e.g. https://material.angular.io?theme=purple-green). This allows us to preview the theme. For example we can use it for angular/components#13708 to show people what the theme would look like when they're prompted in a schematic.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Oct 21, 2018
Adds URLs that people can use to preview a theme, before selecting it, when going through the ng-add prompts. Formatting is aligned with https://github.com/angular/angular-cli/blob/907ce5c94c774147c4b52870b3522aed4e087c76/packages/schematics/angular/ng-new/schema.json#L121 Fixes angular#13708.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Oct 21, 2018
Adds URLs that people can use to preview a theme, before selecting it, when going through the ng-add prompts. Formatting is aligned with https://github.com/angular/angular-cli/blob/907ce5c94c774147c4b52870b3522aed4e087c76/packages/schematics/angular/ng-new/schema.json#L121 Fixes angular#13708.
jelbourn
pushed a commit
to angular/material.angular.io
that referenced
this issue
Oct 24, 2018
* Reworks the theming setup to store only the current theme's name, rather than the entire object in `localStorage`. This is more robust for the cases where we want to change the theme object's interface. * Adds the ability to link people to the docs site with a particular theme (e.g. https://material.angular.io?theme=purple-green). This allows us to preview the theme. For example we can use it for angular/components#13708 to show people what the theme would look like when they're prompted in a schematic.
mmalerba
pushed a commit
that referenced
this issue
Oct 25, 2018
Adds URLs that people can use to preview a theme, before selecting it, when going through the ng-add prompts. Formatting is aligned with https://github.com/angular/angular-cli/blob/907ce5c94c774147c4b52870b3522aed4e087c76/packages/schematics/angular/ng-new/schema.json#L121 Fixes #13708. **A couple of notes:** * Blocked until angular/material.angular.io#549 is merged and released. * Marking this as `patch`, even though it's a `feat`, since it's basically just message changes.
mmalerba
pushed a commit
that referenced
this issue
Oct 26, 2018
Adds URLs that people can use to preview a theme, before selecting it, when going through the ng-add prompts. Formatting is aligned with https://github.com/angular/angular-cli/blob/907ce5c94c774147c4b52870b3522aed4e087c76/packages/schematics/angular/ng-new/schema.json#L121 Fixes #13708. **A couple of notes:** * Blocked until angular/material.angular.io#549 is merged and released. * Marking this as `patch`, even though it's a `feat`, since it's basically just message changes.
atscott
pushed a commit
to atscott/components
that referenced
this issue
Nov 5, 2018
Adds URLs that people can use to preview a theme, before selecting it, when going through the ng-add prompts. Formatting is aligned with https://github.com/angular/angular-cli/blob/907ce5c94c774147c4b52870b3522aed4e087c76/packages/schematics/angular/ng-new/schema.json#L121 Fixes angular#13708. **A couple of notes:** * Blocked until angular/material.angular.io#549 is merged and released. * Marking this as `patch`, even though it's a `feat`, since it's basically just message changes.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug, feature request, or proposal:
When using

ng add @angular/material
, a user will be prompted to choose a theme:It is hard to make an informed decision about which theme to choose because neither https://material.angular.io/guide/getting-started#step-4-include-a-theme nor https://material.angular.io/guide/theming offer a preview of these themes.
The material docs seem to have a theme picker themselves, but offer no indication of the theme name or whether those four are the same as the choose offered in the prompt:

What is the expected behavior?
There should be a way to preview what the themes that a user is selecting.
What is the current behavior?
A user is asked to choose the theme they have no way of differentiating.
What are the steps to reproduce?
What is the use-case or motivation for changing an existing behavior?
Providing a user the necessary background in order to make a decision requested by the prompts.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7 (Angular/Material/CLI)
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: