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: packages/docs/src/pages/en/getting-started/upgrade-guide.md
+55-3Lines changed: 55 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,64 @@ This page contains a detailed list of breaking changes and the steps required to
19
19
20
20
## Styles
21
21
22
+
### Style entry points
23
+
22
24
There are now pre-compiled entry points for the most common style changes. If you have a Sass file that only sets `$color-pack: false` or `$utilities: false` you can replace it with `import 'vuetify/styles/core'`. See [Style entry points](/styles/entry-points) for more information.
23
25
24
-
The CSS reset has been mostly removed, with style normalisation being moved to individual components instead.
26
+
### CSS reset
27
+
28
+
The CSS reset has been mostly removed, with style normalisation being moved to individual components instead. You can inspect the exact [changes](https://github.com/vuetifyjs/vuetify/pull/20960/changes#diff-87996fc432835581ad883bedbc1975ad3a3f44b5747b2b831e3fa03dfdabb91f) to learn more. Here is the high level overview:
29
+
30
+
- global `* { padding: 0; margin: 0; }` is gone - no longer resets all elements
31
+
-`<button>`, `<input>`, `<select>` have their browser-native borders and background colors.
25
32
26
-
-`<button>`, `<input>`, `<select>` have their browser native borders and background colors.
27
-
-`<ul>`, `<ol>` and headings have padding and margins.
33
+
If you notice browser styles adding unnecessary spaces and impact text size, it is recommended to assess the scope of visual regression and selectively apply spacing resets:
34
+
35
+
```css
36
+
ul, ol, figure, details, summary {
37
+
padding: 0;
38
+
margin: 0;
39
+
}
40
+
41
+
h1, h2, h3, h4, h5, h6 {
42
+
margin: 0;
43
+
}
44
+
```
45
+
46
+
Restoring most of the previous reset styles would be heavy-handed, but will get the job done as well.
0 commit comments