-
-
Notifications
You must be signed in to change notification settings - Fork 956
refactor: remove deprecated Less variables #4080
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
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #4080 +/- ##
==========================================
+ Coverage 89.24% 89.30% +0.05%
==========================================
Files 517 517
Lines 12186 12186
Branches 3162 3162
==========================================
+ Hits 10876 10883 +7
+ Misses 646 641 -5
+ Partials 664 662 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This pull request includes several changes to improve the consistency and maintainability of the LESS stylesheets. The most important changes involve the introduction of a new mixin for mapping sizes, replacing deprecated variables, and updating import paths.
Introduction of new mixin:
src/styles/mixins/utilities.less
: Added.map-size
mixin to map size names to suffixes, which helps in standardizing size-related variables.Replacement of deprecated variables:
src/styles/variables.less
: Removed deprecated variables and replaced them with their new equivalents, such as@padding-base-vertical
with@padding-y
,@padding-large-vertical
with@padding-y-lg
, and others. [1] [2] [3] [4] [5] [6] [7] [8] [9]Updates to import paths:
src/SelectPicker/styles/index.less
: Changed the import path of the Picker styles to include the.less
extension for consistency.Usage of new mixin in existing styles:
src/Form/styles/mixin.less
: Updated the.reset-input-group-addon-size
and.reset-inside-input-group-btn-size
mixins to use the new.map-size
mixin for padding variables. [1] [2]src/internals/Picker/styles/index.less
: Replaced deprecated size-related mixins with the new.picker-button-size
mixin. [1] [2]src/internals/Picker/styles/mixin.less
: Added.map-size
mixin to.picker-button-size
and.picker-default-button-reset-padding-left
for padding variables. [1] [2]