You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a _minor release_ that introduces a new property targeting Adaptive Card Extensions for a better mobile experience.
9
+
This is a _minor release_ that introduces a new property targeting Adaptive Card Extensions for a better mobile experience with the Microsot Viva Connections.
@@ -45,7 +42,7 @@ In the project's **package.json** file, identify all SPFx packages. For each SPF
45
42
46
43
### Partial Support for Teams JS SDK in Adaptive Card Extensions (Mobile only)
47
44
48
-
Developers can access **partial** Teams JS SDK in Adaptive Card Extensions via ACE's context (in the same way as in web parts).
45
+
Developers can access **partial** Teams JS SDK in Adaptive Card Extensions via ACE's context (in the same way as in web parts). This enables the Adaptive Card Extensions to reflect the user interface based on the Microsoft Teams mobile theme setting.
49
46
50
47
```typescript
51
48
class AdaptiveCardExtensionContext {
@@ -73,4 +70,4 @@ See more details on the use cases with code samples from the following updated d
73
70
74
71
## Summary
75
72
76
-
Version 1.18.1 is expected to be a small release with limited new capabilities. If you find any issues or have other feedback on the provided capabilities, report them at the [SPFx issue list](https://aka.ms/spfx/issues). Thank you for your input advance.
73
+
Version 1.18.1 is a small release with a limited new capabilities. If you find any issues or have other feedback on the provided capabilities, report them at the [SPFx issue list](https://aka.ms/spfx/issues). Thank you for your input advance.
Copy file name to clipboardExpand all lines: docs/spfx/viva/get-started/making-quickview-compatable-darkmode-mobile.md
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,15 @@
1
1
---
2
2
title: Making Quick View compatible with dark mode in mobile devices
3
3
description: Making Adaptive Card Extension Quick View compatible for both dark and light mode by using different resources for both scenarios.
4
-
ms.date: 09/12/2023
4
+
ms.date: 11/07/2023
5
5
ms.localizationpriority: high
6
6
---
7
7
# Making Quick View compatible with dark mode in mobile devices
8
8
9
9
> [!IMPORTANT]
10
10
> The following tutorial is targeted specifically for Quick View in Mobile for Viva Connections iOS and Android.
11
11
12
-
To adapt to the dark mode release in Viva Connections Mobile, which is scheduled for early Q4 of Calender Year 23, make sure that your card contents look compatible with both light and dark mode.
13
-
14
-
An API ([context.sdks.microsoftTeams.teamsJs.app.getContext()](/javascript/api/sp-adaptive-card-extension-base/ipartialsdks?view=sp-typescript-latest)) will be available in SPFx 1.18.1 package to get the information about the theme of the mobile app. This helps with using associated assets like images compliant to the theme. If you want to use two different sets of data while keeping the existing view style, follow these steps:
12
+
An API ([context.sdks.microsoftTeams.teamsJs.app.getContext()](/javascript/api/sp-adaptive-card-extension-base/ipartialsdks?view=sp-typescript-latest)) is available staring with the SPFx 1.18.1 version, to get the information about the theme of the mobile app. This helps with using associated assets like images compliant to the theme. If you want to use two different sets of data while keeping the existing view style, follow these steps:
15
13
16
14
- Let’s create a basic card with an image in Quick View. Locate and open the following file: **./src/adaptiveCardExtensions/helloWorld/quickView/template/QuickViewTemplate.json**.
17
15
- Replace the contents of this file with the following JSON:
0 commit comments