Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SCSS]: Style import optimizations #450

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Conversation

videoeero
Copy link
Contributor

@videoeero videoeero commented Oct 1, 2024

Jira-ticket: https://funidata.atlassian.net/browse/DS-380

BREAKING CHANGE:

  • Application can remove now previously instructed lines from their main CSS file:
    @use '@angular/material' as mat;
    @include mat.core();
    unless application has their own additional ngMaterial uses outside Fudis.

Although style bundle of Fudis has worked well so far, it had unnecessary "double imports" on some styles. Biggest bundle bloater came from Fudis + Angular Material imports. Instructions and Storybook have been now adjusted to avoid double import of ngMaterial.

This is marked as Breaking Change, as previously we have instructed applications to import both Fudis and ngMaterial in the root style file, but now importing ngMaterial should be unnecessary.

@github-actions github-actions bot temporarily deployed to Documentation for branch impr-fudis-style-optimizations October 1, 2024 07:25 Destroyed
@videoeero videoeero added chore Maintenance and refactoring related issue breaking change This change is not backwards-compatible and removed chore Maintenance and refactoring related issue labels Oct 1, 2024
@videoeero videoeero merged commit 7b622f3 into main Oct 1, 2024
10 checks passed
@videoeero videoeero deleted the impr-fudis-style-optimizations branch October 1, 2024 08:00
@github-actions github-actions bot locked and limited conversation to collaborators Oct 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking change This change is not backwards-compatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants