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

feat(core)!: Loader has new algorithm to calculate stroke-width #6550

Merged
merged 4 commits into from
Jan 29, 2024

Conversation

nsbarsukov
Copy link
Member

Screenshot 2024-01-25 at 16 06 58

Copy link

lumberjack-bot bot commented Jan 25, 2024

Pull request was closed ✔️

All saved screenshots (for current PR) were deleted 🗑️

Copy link
Contributor

github-actions bot commented Jan 25, 2024

Visit the preview URL for this PR (updated for commit 8587587):

https://taiga-ui--pr6550-loader-stroke-width-tlbce2dn.web.app

(expires Sat, 27 Jan 2024 15:35:53 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4b5ece1e114386f6a105425ef799091475b249eb

@nsbarsukov nsbarsukov changed the title feat(core)!: Loader has new algorithm to calculate stroke-width [WIP] feat(core)!: Loader has new algorithm to calculate stroke-width Jan 25, 2024
Copy link

codecov bot commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f78e5c8) 69.39% compared to head (8587587) 69.39%.
Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6550   +/-   ##
=======================================
  Coverage   69.39%   69.39%           
=======================================
  Files        1143     1143           
  Lines       12503    12503           
  Branches     1759     1759           
=======================================
  Hits         8677     8677           
  Misses       3542     3542           
  Partials      284      284           
Flag Coverage Δ
summary 69.39% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

bundlemon bot commented Jan 25, 2024

BundleMon

Files updated (2)
Status Path Size Limits
demo/browser/runtime.(hash).js
34.18KB (+43B +0.12%) +10%
demo/browser/main.(hash).js
345.97KB (+12B 0%) +10%
Unchanged files (3)
Status Path Size Limits
demo/browser/vendor.(hash).js
214.62KB +10%
demo/browser/polyfills.(hash).js
11.24KB +10%
demo/browser/styles.(hash).css
1.06KB +10%

Total files change +55B +0.01%

Groups updated (1)
Status Path Size Limits
demo/browser/*..js
2.19MB (+1.15KB +0.05%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@@ -54,6 +48,33 @@
&._loading {
overflow: hidden;
}

// Use native CSS max function instead LESS one
stroke-width: ~'max(calc(var(--t-size) / 12), 1.5px)';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is ok to use in v4.0
https://caniuse.com/css-math-functions

Screenshot 2024-01-25 at 16 49 10

@nsbarsukov nsbarsukov changed the title [WIP] feat(core)!: Loader has new algorithm to calculate stroke-width feat(core)!: Loader has new algorithm to calculate stroke-width Jan 26, 2024
@nsbarsukov nsbarsukov marked this pull request as ready for review January 26, 2024 16:00
@splincode splincode merged commit 6132683 into main Jan 29, 2024
25 of 26 checks passed
@splincode splincode deleted the loader-stroke-width-v4 branch January 29, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants