Skip to content

Commit e582c50

Browse files
Fix material-symbols Sass deprecations by using CSS asset
Warnings fixed: - "Sass @import rules are deprecated" from material-symbols/sharp.scss. - "Global built-in functions are deprecated" (to-lower-case, str-index, str-slice, str-length) from material-symbols/_core.scss. Approach: - Replace material-symbols/sharp.scss import with material-symbols/sharp.css in ExternalStyles.scss. Why this approach: - Uses upstream distributed CSS, so our build no longer compiles third-party Sass that triggers deprecation warnings. - Keeps the same font-face and utility class output with minimal risk. Alternatives considered: - Keep SCSS and silence deprecations: rejected because it masks dependency issues broadly. - Patch material-symbols Sass locally: rejected due to long-term maintenance burden. Co-authored-by: Chris Zetter <zetter-rpf@users.noreply.github.com>
1 parent ec895fc commit e582c50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/assets/stylesheets/ExternalStyles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
@use "../../../node_modules/prismjs/plugins/line-numbers/prism-line-numbers.css";
55
@use "../../../node_modules/prismjs/plugins/line-highlight/prism-line-highlight.css";
66
@use "../../../node_modules/react-toastify/dist/ReactToastify.css";
7-
@use "../../../node_modules/material-symbols/sharp.scss";
7+
@use "../../../node_modules/material-symbols/sharp.css";
88
@use "../../../node_modules/plotly.js/src/css/style.scss" as plotlyStyle;

0 commit comments

Comments
 (0)