Skip to content

Commit ae05678

Browse files
committed
fix(schematics): do not allow specifying native view encapsulation
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.
1 parent b9651df commit ae05678

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/lib/schematics/address-form/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"viewEncapsulation": {
4141
"description": "Specifies the view encapsulation strategy.",
42-
"enum": ["Emulated", "Native", "None"],
42+
"enum": ["Emulated", "None"],
4343
"type": "string",
4444
"alias": "v"
4545
},

src/lib/schematics/dashboard/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"viewEncapsulation": {
4141
"description": "Specifies the view encapsulation strategy.",
42-
"enum": ["Emulated", "Native", "None"],
42+
"enum": ["Emulated", "None"],
4343
"type": "string",
4444
"alias": "v"
4545
},

src/lib/schematics/nav/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"viewEncapsulation": {
4141
"description": "Specifies the view encapsulation strategy.",
42-
"enum": ["Emulated", "Native", "None"],
42+
"enum": ["Emulated", "None"],
4343
"type": "string",
4444
"alias": "v"
4545
},

src/lib/schematics/table/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"viewEncapsulation": {
4141
"description": "Specifies the view encapsulation strategy.",
42-
"enum": ["Emulated", "Native", "None"],
42+
"enum": ["Emulated", "None"],
4343
"type": "string",
4444
"alias": "v"
4545
},

src/lib/schematics/tree/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"viewEncapsulation": {
4141
"description": "Specifies the view encapsulation strategy.",
42-
"enum": ["Emulated", "Native", "None"],
42+
"enum": ["Emulated", "None"],
4343
"type": "string",
4444
"alias": "v"
4545
},

0 commit comments

Comments
 (0)