Skip to content

Commit 33a61b0

Browse files
devversionjelbourn
authored andcommitted
build: render safari detection in platform demo and example (#18226)
Currently we render all possible detections of the `Platform` service in the demo and example, except for `Safari`.
1 parent 3168e94 commit 33a61b0

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/components-examples/cdk/platform/cdk-platform-overview/cdk-platform-overview-example.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ <h2>Platform information:</h2>
66
<p>Is Webkit: {{platform.WEBKIT}}</p>
77
<p>Is Trident: {{platform.TRIDENT}}</p>
88
<p>Is Edge: {{platform.EDGE}}</p>
9+
<p>Is Safari: {{platform.SAFARI}}</p>
910
<p>Supported input types: {{supportedInputTypes}}</p>
1011
<p>Supports passive event listeners: {{supportsPassiveEventListeners}}</p>
1112
<p>Supports scroll behavior: {{supportsScrollBehavior}}</p>
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
<p>Is Android: {{ platform.ANDROID }}</p>
2-
<p>Is iOS: {{ platform.IOS }}</p>
3-
<p>Is Firefox: {{ platform.FIREFOX }}</p>
4-
<p>Is Blink: {{ platform.BLINK }}</p>
5-
<p>Is Webkit: {{ platform.WEBKIT }}</p>
6-
<p>Is Trident: {{ platform.TRIDENT }}</p>
7-
<p>Is Edge: {{ platform.EDGE }}</p>
1+
<p>Is Android: {{platform.ANDROID}}</p>
2+
<p>Is iOS: {{platform.IOS}}</p>
3+
<p>Is Firefox: {{platform.FIREFOX}}</p>
4+
<p>Is Blink: {{platform.BLINK}}</p>
5+
<p>Is Webkit: {{platform.WEBKIT}}</p>
6+
<p>Is Trident: {{platform.TRIDENT}}</p>
7+
<p>Is Edge: {{platform.EDGE}}</p>
8+
<p>Is Safari: {{platform.SAFARI}}</p>
89

910
<p>
1011
Supported input types:
11-
<span *ngFor="let type of supportedInputTypes">{{ type }}, </span>
12+
<span *ngFor="let type of supportedInputTypes">{{type}}, </span>
1213
</p>

0 commit comments

Comments
 (0)