-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Description
Environment
Vuetify Version: 3.9.2
Last working version: 3.8.12
Vue Version: 3.5.17
Browsers: Google Chrome
OS: Windows 10
Steps to reproduce
- Set $alert-title-line-height in your project to a number (e.g. 1.6) or px value instead of rem.
- Build the project.
Expected Behavior
When customizing $alert-title-line-height
with any unit (e.g., number, px
, rem
), the build should not fail, and the component should render properly.
Actual Behavior
When customizing $alert-title-line-height
with a value that is not in rem (such as a unitless number), the build fails with a Sass error due to incompatible units.
Example error:
File: virtual:plugin-vuetify:components/VAlert/VAlert.sass:48:28
[sass] Error: 1.6 and 1.5rem are incompatible.
╷
48 │ padding-top: calc(($alert-title-line-height - settings.$line-height-root * 1rem) / 2)
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
Reproduction Link
https://github.com/OTAnagisa/VuetifyTest/blob/main/src/styles/settings.scss
Other comments
This issue started occurring after the following pull request was merged:
https://github.com/vuetifyjs/vuetify/pull/20700/files#diff-1c2846217423678d3921032d89818548a96d65a6efcf54c3b6ed4abeeba1581a
Note: This issue cannot be demonstrated in the official Vuetify Playground, as it does not support custom Sass variable overrides.