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
docs: add note about online autoprefixing tools for non-build workflows (#10812)
* docs: add note about online autoprefixing tools for non-build workflows
* docs(spfx): tighten wording in css-recommendations
- replace `does not`/`cannot`/`will not`/`are not` with
contractions
- correct `artefact` to `artifact`
- revert `ms.date` to original publication date; rendering engine
shows last modified date dynamically from git history
---------
Co-authored-by: Andrew Connell <me@andrewconnell.com>
For the CSS modules to work correctly, you have to meet the following conditions:
177
177
178
-
* Your Sass files must have the **.module.scss** extension. If you use the **.scss** extension without **.module**, you see a warning in the build process. The Sass file is transpiled to an intermediate CSS file, but the class names *will not be made unique*. In cases when you need to override third-party CSS styles, this might be intended.
178
+
* Your Sass files must have the **.module.scss** extension. If you use the **.scss** extension without **.module**, you see a warning in the build process. The Sass file is transpiled to an intermediate CSS file, but the class names *won't be made unique*. In cases when you need to override third-party CSS styles, this might be intended.
179
179
180
-
* Your CSS class names must be valid JavaScript variable names. For example, they cannot contain hyphens: `todoList` is correct, but `todo-list` isn't.
180
+
* Your CSS class names must be valid JavaScript variable names. For example, they can't contain hyphens: `todoList` is correct, but `todo-list` isn't.
181
181
182
182
* We recommend using camelCase naming for classes, but it's not enforced.
183
183
@@ -235,7 +235,7 @@ In case a web part should use the new flex box model defined by the `display: fl
235
235
}
236
236
```
237
237
238
-
The Sass code of the SharePoint Framework artefact does not need to have vendor prefixes included. After the Sass-to-CSS compilation, those were added automatically, resulting in the following CSS declaration.
238
+
The Sass code of the SharePoint Framework artifact doesn't need to have vendor prefixes included. After the Sass-to-CSS compilation, those were added automatically, resulting in the following CSS declaration.
239
239
240
240
```css
241
241
.container_7e976ae1 {
@@ -245,11 +245,11 @@ The Sass code of the SharePoint Framework artefact does not need to have vendor
245
245
}
246
246
```
247
247
248
-
Removing already applied prefixes does not only make the code of the artefact cleaner, it also makes it easier to read and future-ready. This process is also configured to support only SharePoint Framework-supported browsers and makes it more error-safe.
248
+
Removing already applied prefixes doesn't only make the code of the artifact cleaner, it also makes it easier to read and future-ready. This process is also configured to support only SharePoint Framework-supported browsers and makes it more error-safe.
249
249
250
-
In case a web part already has vendor prefixes included in the Sass files that are not needed anymore, the same process removes those declarations automatically.
250
+
In case a web part already has vendor prefixes included in the Sass files that aren't needed anymore, the same process removes those declarations automatically.
251
251
252
-
The following example makes use of the `border-radius` property, which does not require vendor prefixes on the supported systems.
252
+
The following example makes use of the `border-radius` property, which doesn't require vendor prefixes on the supported systems.
253
253
254
254
```css
255
255
.container {
@@ -270,7 +270,7 @@ The resulting CSS in the package is converted to the following code.
270
270
}
271
271
```
272
272
273
-
For more information about auto-prefixing, see the [autoprefixer](https://github.com/postcss/autoprefixer) GitHub repository. The database for this process is available on [Can I use?](https://caniuse.com).
273
+
For more information about auto-prefixing, see the [Autoprefixer](https://github.com/postcss/autoprefixer) GitHub repository. The database for this process is available on [Can I use?](https://caniuse.com). If you’re not using a build pipeline, you can also use online autoprefixing tools to automatically apply vendor prefixes and test different PostCSS and Autoprefixer versions, such as [this online autoprefixer tool](https://goonlinetools.com/autoprefixer/).
274
274
275
275
## Integrate Fluent UI
276
276
@@ -282,6 +282,6 @@ For more information about using Fluent UI in SharePoint Framework, see [Using F
282
282
283
283
SharePoint allows users to choose the theme color for their sites. In your SharePoint Framework customizations, you should follow the theme selected by the users to make your customization look like an integral part of the site rather than unnecessarily stand out.
284
284
285
-
Because the theme is set by users on their site, you cannot tell upfront which colors your customization should use, but SharePoint Framework can dynamically load the currently active color scheme automatically for you.
285
+
Because the theme is set by users on their site, you can't tell upfront that colors your customization should use, but SharePoint Framework can dynamically load the currently active color scheme automatically for you.
286
286
287
287
For more information about this capability, see [Use theme colors in your SharePoint Framework customizations](./use-theme-colors-in-your-customizations.md).
0 commit comments