Skip to content

Commit

Permalink
fix(schematics): do not allow specifying native view encapsulation (#…
Browse files Browse the repository at this point in the history
…12632)

No longer allows developers to specify the `--viewEncapsulation Native` when creating components through the Angular Material schematics. Since Angular Material does not work properly with Native / ShadowDom view encapsulation, we should not support these as valid schematic options.
  • Loading branch information
devversion authored and jelbourn committed Aug 21, 2018
1 parent b20662f commit 0a823dd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/schematics/address-form/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"viewEncapsulation": {
"description": "Specifies the view encapsulation strategy.",
"enum": ["Emulated", "Native", "None"],
"enum": ["Emulated", "None"],
"type": "string",
"alias": "v"
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/schematics/dashboard/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"viewEncapsulation": {
"description": "Specifies the view encapsulation strategy.",
"enum": ["Emulated", "Native", "None"],
"enum": ["Emulated", "None"],
"type": "string",
"alias": "v"
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/schematics/nav/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"viewEncapsulation": {
"description": "Specifies the view encapsulation strategy.",
"enum": ["Emulated", "Native", "None"],
"enum": ["Emulated", "None"],
"type": "string",
"alias": "v"
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/schematics/table/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"viewEncapsulation": {
"description": "Specifies the view encapsulation strategy.",
"enum": ["Emulated", "Native", "None"],
"enum": ["Emulated", "None"],
"type": "string",
"alias": "v"
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/schematics/tree/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"viewEncapsulation": {
"description": "Specifies the view encapsulation strategy.",
"enum": ["Emulated", "Native", "None"],
"enum": ["Emulated", "None"],
"type": "string",
"alias": "v"
},
Expand Down

0 comments on commit 0a823dd

Please sign in to comment.