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/elevation-migration.md
+1-14Lines changed: 1 addition & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,25 +28,12 @@ Vuetify 4 introduces Material Design 3 (MD3) elevation shadows, which differ sig
28
28
- Simplified, more distinct elevation steps
29
29
- Better alignment with MD3 design principles
30
30
31
-
## MD3 Elevation Levels
32
-
33
-
| Level | Usage |
34
-
| ----- | -------------------------------- |
35
-
| 0 | No shadow - flat surfaces |
36
-
| 1 | Low emphasis - cards at rest |
37
-
| 2 | Cards, contained buttons |
38
-
| 3 | FABs, Snackbars |
39
-
| 4 | Navigation drawer, Bottom sheet |
40
-
| 5 | Dialogs |
41
-
42
-
In MD3, elevation changes are commonly used to indicate interactive states. For example, a card at rest might use `elevation-1`, rising to `elevation-2` on hover and `elevation-3` when pressed or dragged.
43
-
44
31
### Adapt CSS classes
45
32
46
33
Update your elevation classes to use the new 0-5 scale.
Copy file name to clipboardExpand all lines: packages/docs/src/pages/en/styles/elevation.md
+11-28Lines changed: 11 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,37 +13,20 @@ features:
13
13
14
14
# Elevation
15
15
16
-
The elevation helpers control the relative depth between surfaces along the **z-axis**.
16
+
The elevation helpers control the relative depth between surfaces along the **z-axis**. Following Material Design 3 guidelines, Vuetify uses 6 elevation levels (0-5). Elevation values are measured in **dp** (density-independent pixels), a unit that ensures consistent sizing across different screen densities.
In MD3, elevation changes are commonly used to indicate interactive states. For example, a card at rest might use `elevation-1`, rising to `elevation-2` on hover and `elevation-3` when pressed or dragged.
0 commit comments