logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.31k stars 406 forks source link

fix(console): css loaded svg should be rendered properly #6333

Closed charIeszhao closed 1 month ago

charIeszhao commented 1 month ago

Summary

Remove raw: scheme from CSS url(), as this is previously a parcel specific workaround to load SVG files in CSS without being transformed into React components. Now since we have migrated to Vite, this is no longer working and has caused issues loading the SVG.

Testing

Locally tested

Checklist

- [ ] .changeset - [ ] unit tests - [ ] integration tests - [ ] necessary TSDoc comments

github-actions[bot] commented 1 month ago

COMPARE TO master

Total Size Diff :chart_with_downwards_trend: -20 Bytes

Diff by File |Name|Diff| |---|---| |packages/console/src/components/SignInExperiencePreview/index.module.scss|:chart_with_downwards_trend: -4 Bytes| |packages/console/src/ds-components/TextInput/index.module.scss|:chart_with_downwards_trend: -4 Bytes| |packages/console/src/onboarding/pages/SignInExperience/InspireMe/index.module.scss|:chart_with_downwards_trend: -4 Bytes| |packages/console/src/pages/Welcome/index.module.scss|:chart_with_downwards_trend: -8 Bytes|