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
Copy file name to clipboardExpand all lines: docs/design/semantic_slots.md
+8-32Lines changed: 8 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Designing for section backgrounds using semantic slots
3
3
description: Learn how to design your web part to take advantage of section backgrounds using semantic slots.
4
-
ms.date: 04/06/2022
4
+
ms.date: 04/25/2022
5
5
ms.localizationpriority: medium
6
6
---
7
7
@@ -15,7 +15,7 @@ Section background is a feature that applies background color to a canvas secti
15
15
16
16
## Variant vs. Section background
17
17
18
-
A variant describes different values of color generated from an existing theme. A variant will share the same set of colors as the original theme it was generated from, but will apply those colors differently. See [Office UI Fabric variant documentation](https://github.com/OfficeDev/office-ui-fabric-react/blob/master/packages/variants/README.md) for more detail.
18
+
A variant describes different values of color generated from an existing theme. A variant will share the same set of colors as the original theme it was generated from, but will apply those colors differently. See [@fluentui/scheme-utilities](https://github.com/microsoft/fluentui/blob/master/packages/scheme-utilities/README.md) for more detail.
19
19
20
20
A Section Background allows the user to apply a variant color from the theme to a canvas section. Both concepts share "Neutral", "Soft", and "Strong" options and can be used interchangeably when describing color usage.
21
21
@@ -25,39 +25,15 @@ A semantic slot is a theming slot that targets specific page elements. A Offic
25
25
26
26
For example, default text uses the "bodyText" semantic slot. On the None, Neutral, and Soft section backgrounds, bodyText is assigned neutralPrimary. On the Strong section background, the palette color of bodyText changes to white. Semantic slots can be assigned palette colors for all variants in dark themes as well.
27
27
28
-
In the table below, you can see all eight palette colors defined for the bodyText slot.
28
+
In the table below, you can see all eight palette colors defined for the bodyText slot.
29
29
30
30

> The current semantic slot list is defined by commonly used design patterns in SharePoint. We want to avoid creating case-specific semantic slots. When designing a new web part, consider aligning to an existing design pattern. Office UI Fabric's policy is that semantic slots may never be removed from the list, so any additions are permanent.
0 commit comments